GpuCompoundScene.h 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef GPU_COMPOUND_SCENE_H
  2. #define GPU_COMPOUND_SCENE_H
  3. #include "GpuRigidBodyDemo.h"
  4. class GpuCompoundScene : public GpuRigidBodyDemo
  5. {
  6. public:
  7. GpuCompoundScene(){}
  8. virtual ~GpuCompoundScene(){}
  9. virtual const char* getName()
  10. {
  11. return "CompoundOnSphere";
  12. }
  13. static GpuDemo* MyCreateFunc()
  14. {
  15. GpuDemo* demo = new GpuCompoundScene;
  16. return demo;
  17. }
  18. virtual void setupScene(const ConstructionInfo& ci);
  19. virtual void createStaticEnvironment(const ConstructionInfo& ci);
  20. };
  21. class GpuCompoundPlaneScene : public GpuCompoundScene
  22. {
  23. public:
  24. GpuCompoundPlaneScene(){}
  25. virtual ~GpuCompoundPlaneScene(){}
  26. virtual const char* getName()
  27. {
  28. return "CompoundOnPlane";
  29. }
  30. static GpuDemo* MyCreateFunc()
  31. {
  32. GpuDemo* demo = new GpuCompoundPlaneScene;
  33. return demo;
  34. }
  35. virtual void createStaticEnvironment(const ConstructionInfo& ci);
  36. };
  37. #endif //GPU_COMPOUND_SCENE_H