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 490B

123456789101112131415161718192021222324252627282930
  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. private:
  18. int id;
  19. int mesh;
  20. std::unique_ptr<BoundingBox> bbox1, bbox2;
  21. };
  22. #endif