model.h 497 B

12345678910111213141516171819202122232425262728
  1. #ifndef MODEL_H
  2. #define MODEL_H
  3. #include <string>
  4. #include "mesh.h"
  5. #include "geometry.h"
  6. #include "matrix.h"
  7. class Model{
  8. public:
  9. Model(std::string path, TransformParameters &initParameters);
  10. Mesh *getMesh();
  11. Matrix4 &getModelMatrix();
  12. AABox *getBounds();
  13. void update();
  14. //Prints the mesh vertices for debugging
  15. void describeMesh();
  16. private:
  17. Mesh mMesh;
  18. AABox mBounds;
  19. Matrix4 mModelMatrix;
  20. };
  21. #endif