EmptyBrowser.h 579 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 bool requestedExit()
  25. {
  26. return false;
  27. }
  28. };
  29. #endif //EMPTY_BROWSER