16#include <glm/gtc/matrix_transform.hpp>
17#include <glm/gtc/quaternion.hpp>
18#include <glm/gtx/quaternion.hpp>
19#include <glm/gtx/euler_angles.hpp>
20#include <glm/gtx/norm.hpp>
45 void setUVs(std::vector<glm::vec2> uvs);
48 void setUVs(std::vector<float> uvs);
51 void setNormals(std::vector<glm::vec3> normals);
54 void setIndices(std::vector<unsigned short> indices);
66 std::vector<glm::vec3> m_vertices;
67 std::vector<glm::vec2> m_uvs;
68 std::vector<glm::vec3> m_normals;
69 std::vector<unsigned short> m_indices;
71 GLuint m_vertexBufferID;
73 GLuint m_normalBufferID;
74 GLuint m_indexBufferID;
Camera.
Definition Camera.hpp:22
Mesh.
Definition Mesh.hpp:28
int getMatIndex()
getMatIndex
Definition Mesh.hpp:63
void render(Camera *camera)
render
Definition Mesh.cpp:85
Mesh()
Default constructor.
Definition Mesh.hpp:33
void setMatIndex(int index)
setMatIndex
Definition Mesh.hpp:60
void setVertices(std::vector< float > verts)
setVertices
Definition Mesh.cpp:11
~Mesh()
Destructor.
Definition Mesh.cpp:5
void setUVs(std::vector< glm::vec2 > uvs)
setUVs
Definition Mesh.cpp:35
void setNormals(std::vector< glm::vec3 > normals)
setNormals
Definition Mesh.cpp:59
void setIndices(std::vector< unsigned short > indices)
setIndices
Definition Mesh.cpp:70
Object.
Definition Object.hpp:28