model.h 613 B

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