23 #include "worldsimconfig.h"
52 bool loadMS3DModel( QString filename );
65 int *m_pTriangleIndices;
69 float m_ambient[4], m_diffuse[4], m_specular[4], m_emissive[4];
71 QString m_pTextureFilename;
75 float m_vertexNormals[3][3];
77 int m_vertexIndices[3];
99 return m_numMaterials;
107 return m_numTriangles;
115 return m_numVertices;
124 Material *m_pMaterials;
126 Triangle *m_pTriangles;
static wMatrix identity()
create an identity matrix
Triangle * triangles()
Return Triangles composing the mesh.
Vertex * vertices()
Return Vertices composing the triangles of the mesh.
Material * materials()
Return Materials (for now are ignored during rendering)
WObject * attachedTo()
Return the attached WObject (NULL is there isn't)
int materialsCount()
Number of materials.
int trianglesCount()
Number of triangles.
Mesh * meshes()
Return Meshes.
int meshesCount()
Number of meshes.
int verticesCount()
Number of vertices.