EmptyBrowser.h 703 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef EMPTY_BROWSER
  2. #define EMPTY_BROWSER
  3. #include "ExampleBrowserInterface.h"
  4. #include "EmptyExample.h"
  5. class EmptyBrowser : public ExampleBrowserInterface
  6. {
  7. public:
  8. EmptyExample m_emptyExample;
  9. virtual CommonExampleInterface* getCurrentExample()
  10. {
  11. return &m_emptyExample;
  12. }
  13. EmptyBrowser(class ExampleEntries* examples)
  14. {
  15. }
  16. virtual bool init(int /*argc*/, char* argv[])
  17. {
  18. return true;
  19. }
  20. virtual void update(float deltaTime)
  21. {
  22. m_emptyExample.stepSimulation(deltaTime);
  23. }
  24. virtual void updateGraphics()
  25. {
  26. }
  27. virtual bool requestedExit()
  28. {
  29. return false;
  30. }
  31. virtual void setSharedMemoryInterface(class SharedMemoryInterface* sharedMem)
  32. {
  33. }
  34. };
  35. #endif //EMPTY_BROWSER