EmptyExample.h 793 B

123456789101112131415161718192021222324252627
  1. #ifndef EMPTY_EXAMPLE_H
  2. #define EMPTY_EXAMPLE_H
  3. #include "../CommonInterfaces/CommonExampleInterface.h"
  4. class EmptyExample : public CommonExampleInterface
  5. {
  6. public:
  7. EmptyExample() {}
  8. virtual ~EmptyExample() {}
  9. static CommonExampleInterface* CreateFunc(struct CommonExampleOptions& /* unusedOptions*/)
  10. {
  11. return new EmptyExample;
  12. }
  13. virtual void initPhysics() {}
  14. virtual void exitPhysics() {}
  15. virtual void stepSimulation(float deltaTime) {}
  16. virtual void renderScene() {}
  17. virtual void physicsDebugDraw(int debugFlags) {}
  18. virtual bool mouseMoveCallback(float x, float y) { return false; }
  19. virtual bool mouseButtonCallback(int button, int state, float x, float y) { return false; }
  20. virtual bool keyboardCallback(int key, int state) { return false; }
  21. };
  22. #endif //EMPTY_EXAMPLE_H