25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nacl_phystest.h 1.7 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // BtPhysTest
  3. //
  4. // Copyright: (c) 2009-2013 Benjamin "Touky" Huet <huet.benjamin@gmail.com>
  5. // (c) 2012 Sam Hocevar <sam@hocevar.net>
  6. //
  7. #if !defined __BTPHYSTEST_H__
  8. #define __BTPHYSTEST_H__
  9. class Nacl_PhysTest : public WorldEntity
  10. {
  11. public:
  12. Nacl_PhysTest(bool editor = false);
  13. virtual ~Nacl_PhysTest();
  14. char const *GetName() { return "<Nacl_PhysTest>"; }
  15. protected:
  16. virtual void TickGame(float seconds);
  17. virtual void TickDraw(float seconds);
  18. private:
  19. enum
  20. {
  21. KEY_MOVE_FORWARD,
  22. KEY_MOVE_BACK,
  23. KEY_MOVE_LEFT,
  24. KEY_MOVE_RIGHT,
  25. KEY_MOVE_UP,
  26. KEY_MOVE_DOWN,
  27. KEY_MOVE_JUMP,
  28. KEY_QUIT,
  29. KEY_MAX,
  30. };
  31. TileSet* m_cat_texture;
  32. Shader* m_cat_shader;
  33. Camera* m_camera;
  34. Controller * m_controller;
  35. Light * m_light1;
  36. Light * m_light2;
  37. bool m_ready;
  38. //lol::phys::Simulation* m_simulation;
  39. //Array<EasyConstraint*> m_constraint_list;
  40. //Array<PhysicsObject*, float> m_physobj_list;
  41. //Array<PhysicsObject*> m_ground_list;
  42. //Array<PhysicsObject*> m_platform_list;
  43. //Array<PhysicsObject*> m_character_list;
  44. //Array<PhysicsObject*> m_stairs_list;
  45. float m_loop_value;
  46. float m_target_timer;
  47. int m_cam_target;
  48. float m_fov_dp;
  49. float m_loc_dp;
  50. };
  51. #endif // __BTPHYSTEST_H__