Open Source Tomb Raider Engine
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.

StaticMesh.h 658B

1234567891011121314151617181920212223242526272829303132333435
  1. /*!
  2. * \file include/StaticMesh.h
  3. * \brief Static Model Meshes
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _STATIC_MODEL_H_
  8. #define _STATIC_MODEL_H_
  9. #include <memory>
  10. #include "RoomData.h"
  11. class StaticMesh {
  12. public:
  13. StaticMesh(int i, int m, BoundingBox* b1, BoundingBox* b2)
  14. : id(i), mesh(m), bbox1(b1), bbox2(b2) { }
  15. void display(glm::mat4 MVP);
  16. int getID() { return id; }
  17. static void setShowBoundingBox(bool s) { showBoundingBox = s; }
  18. static bool getShowBoundingBox() { return showBoundingBox; }
  19. private:
  20. int id;
  21. int mesh;
  22. std::unique_ptr<BoundingBox> bbox1, bbox2;
  23. static bool showBoundingBox;
  24. };
  25. #endif