Changeset 5304 in orxonox.OLD for trunk/src/lib/graphics/importer/model.h
- Timestamp:
- Oct 7, 2005, 3:28:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.h
r4836 r5304 96 96 }; 97 97 98 struct ModelMaterial 99 { 100 Material* material; 101 bool external; 102 }; 103 98 104 ///////////// 99 105 /// MODEL /// 100 106 ///////////// 101 102 107 //! Class that handles 3D-Models. it can also read them in and display them. 103 108 class Model : public AbstractModel … … 172 177 173 178 private: 174 MODEL_TYPE type; //!< A type for the Model175 bool finalized; //!< Sets the Object to be finalized.179 MODEL_TYPE type; //!< A type for the Model 180 bool finalized; //!< Sets the Object to be finalized. 176 181 177 unsigned int vertexCount; //!< A modelwide Counter for vertices.178 unsigned int normalCount; //!< A modelwide Counter for the normals.179 unsigned int texCoordCount; //!< A modelwide Counter for the texCoord.180 unsigned int faceCount; //!< A modelwide Counter for the faces181 unsigned int triangleCount; //!< Number of triangles >= faceCount182 Array<GLfloat>* vertices; //!< The Array that handles the Vertices.183 Array<GLfloat>* normals; //!< The Array that handles the Normals.184 Array<GLfloat>* vTexture; //!< The Array that handles the VertexTextureCoordinates.185 sTriangleExt* triangles; //!< The Array of triangles in the abstract_model.h style182 unsigned int vertexCount; //!< A modelwide Counter for vertices. 183 unsigned int normalCount; //!< A modelwide Counter for the normals. 184 unsigned int texCoordCount; //!< A modelwide Counter for the texCoord. 185 unsigned int faceCount; //!< A modelwide Counter for the faces 186 unsigned int triangleCount; //!< Number of triangles >= faceCount 187 Array<GLfloat>* vertices; //!< The Array that handles the Vertices. 188 Array<GLfloat>* normals; //!< The Array that handles the Normals. 189 Array<GLfloat>* vTexture; //!< The Array that handles the VertexTextureCoordinates. 190 sTriangleExt* triangles; //!< The Array of triangles in the abstract_model.h style 186 191 187 ModelGroup* firstGroup; //!< The first of all groups.188 ModelGroup* currentGroup; //!< The currentGroup. this is the one we will work with.189 int groupCount; //!< The Count of Groups.192 ModelGroup* firstGroup; //!< The first of all groups. 193 ModelGroup* currentGroup; //!< The currentGroup. this is the one we will work with. 194 int groupCount; //!< The Count of Groups. 190 195 191 tList<Material>* materialList; //!< A list for all the Materials in this Model 192 bool materialsExtern; //!< If the materials given to this Object are extern. 196 tList<ModelMaterial>* materialList; //!< A list for all the Materials in this Model 193 197 }; 194 198
Note: See TracChangeset
for help on using the changeset viewer.