Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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