Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef std::vector<glm::vec3> PositionBuffer;
- typedef std::vector<glm::vec3> NormalBuffer;
- typedef std::vector<glm::vec2> Tex2DBuffer;
- typedef std::vector<GLuint> IndexBuffer;
- struct Vertex {
- glm::vec3 m_Pos;
- glm::vec3 m_Normal;
- glm::vec2 m_Tex0;
- int m_StartWeight;
- int m_WeightCount;
- };
- typedef std::vector<Vertex> VertexList;
- struct Triangle {
- int m_Indices[3];
- };
- typedef std::vector<Triangle> TriangleList;
- struct Weight {
- int m_JointID;
- float m_Bias;
- glm::vec3 m_Pos;
- };
- typedef std::vector<Weight> WeightList;
- struct Joint {
- std::string m_Name;
- int m_ParentID;
- glm::vec3 m_Pos;
- glm::quat m_Orient;
- };
- typedef std::vector<Joint> JointList;
- struct md5Mesh {
- std::string m_Shader;
- VertexList m_Verts;
- TriangleList m_Tris;
- WeightList m_Weights;
- GLuint m_TexID;
- PositionBuffer m_PositionBuffer;
- NormalBuffer m_NormalBuffer;
- Tex2DBuffer m_Tex2DBuffer;
- IndexBuffer m_IndexBuffer;
- };
- typedef std::vector<md5Mesh> MeshList;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement