Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

StaticMesh.h 530B

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 model, glm::mat4 view, glm::mat4 projection);
  16. int getID() { return id; }
  17. private:
  18. int id;
  19. int mesh;
  20. std::unique_ptr<BoundingBox> bbox1, bbox2;
  21. };
  22. #endif