You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
2.0 KiB

  1. //
  2. // Lol Engine — Bullet physics test
  3. //
  4. // Copyright © 2009—2013 Benjamin “Touky” Huet <huet.benjamin@gmail.com>
  5. // © 2012—2018 Sam Hocevar <sam@hocevar.net>
  6. //
  7. // Lol Engine is free software. It comes without any warranty, to
  8. // the extent permitted by applicable law. You can redistribute it
  9. // and/or modify it under the terms of the Do What the Fuck You Want
  10. // to Public License, Version 2, as published by the WTFPL Task Force.
  11. // See http://www.wtfpl.net/ for more details.
  12. //
  13. #pragma once
  14. class Nacl_PhysTest : public WorldEntity
  15. {
  16. public:
  17. Nacl_PhysTest(bool editor = false);
  18. virtual ~Nacl_PhysTest();
  19. std::string GetName() const { return "<Nacl_PhysTest>"; }
  20. protected:
  21. virtual void TickGame(float seconds);
  22. virtual void TickDraw(float seconds, Scene &scene);
  23. private:
  24. enum
  25. {
  26. KEY_MOVE_FORWARD,
  27. KEY_MOVE_BACK,
  28. KEY_MOVE_LEFT,
  29. KEY_MOVE_RIGHT,
  30. KEY_MOVE_UP,
  31. KEY_MOVE_DOWN,
  32. KEY_MOVE_JUMP,
  33. KEY_QUIT,
  34. KEY_MAX,
  35. };
  36. TileSet* m_cat_texture;
  37. Shader* m_cat_shader;
  38. Camera* m_camera;
  39. Controller * m_controller;
  40. Light * m_light1;
  41. Light * m_light2;
  42. bool m_ready;
  43. //lol::phys::Simulation* m_simulation;
  44. //array<EasyConstraint*> m_constraint_list;
  45. //array<PhysicsObject*, float> m_physobj_list;
  46. //array<PhysicsObject*> m_ground_list;
  47. //array<PhysicsObject*> m_platform_list;
  48. //array<PhysicsObject*> m_character_list;
  49. //array<PhysicsObject*> m_stairs_list;
  50. float m_loop_value;
  51. float m_target_timer;
  52. int m_cam_target;
  53. float m_fov_dp;
  54. float m_loc_dp;
  55. };