Changeset 4677 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- Jun 23, 2005, 11:29:18 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r4580 r4677 145 145 this->normalCount = 0; 146 146 this->texCoordCount = 0; 147 this->faceCount = 0; 147 148 148 149 this->scaleFactor = 1; … … 553 554 554 555 this->currentGroup->faceCount += this->currentGroup->currentFace->vertexCount -2; 556 this->faceCount += this->currentGroup->currentFace->vertexCount -2; 555 557 } 556 558 … … 585 587 586 588 this->currentGroup->faceCount += this->currentGroup->currentFace->vertexCount - 2; 589 this->faceCount += this->currentGroup->currentFace->vertexCount -2; 587 590 } 588 591 -
orxonox/trunk/src/lib/graphics/importer/model.h
r4579 r4677 141 141 142 142 /** \returns The number of Vertices of the Model */ 143 inline int getVertexCount(void) const { return this->vertexCount;}143 inline int getVertexCount(void) const { return this->vertexCount; }; 144 144 /** \returns The number of Normals of the Model */ 145 inline int getNormalCount(void) const {return this->normalCount;} 146 /** \returns The number of Texture Coordinates of the Model*/ 147 inline int getTexCoordCount(void) const {return this->texCoordCount;} 145 inline int getNormalCount(void) const { return this->normalCount; }; 146 /** \returns The number of Texture Coordinates of the Model */ 147 inline int getTexCoordCount(void) const { return this->texCoordCount; }; 148 /** \returns The number of Faces of the entire Model */ 149 inline unsigned int getFaceCount() const { return this->faceCount; }; 148 150 149 151 protected: … … 174 176 unsigned int normalCount; //!< A modelwide Counter for the normals. 175 177 unsigned int texCoordCount; //!< A modelwide Counter for the texCoord. 178 unsigned int faceCount; //!< A modelwide Counter for the faces 176 179 Array<GLfloat>* vertices; //!< The Array that handles the Vertices. 177 180 Array<GLfloat>* normals; //!< The Array that handles the Normals.
Note: See TracChangeset
for help on using the changeset viewer.