| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef MODEL_H
- #define MODEL_H
- #include <string>
- #include "mesh.h"
- #include "geometry.h"
- #include "matrix.h"
- #include "objParser.h"
- class Model{
- public:
- Model(std::string path, TransformParameters &initParameters);
- Mesh *getMesh();
- AABox *getBounds();
- void update();
- //Prints the mesh vertices for debugging
- void describeMesh();
- private:
- //Transform matrix from object space to worldSpace
- void initPosition(TransformParameters initPos);
- //Calculates the boundary box of the mesh in object space
- void buildBoundaryBox();
- Mesh mMesh;
- AABox mBounds;
- };
- #endif
|