Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2005, 11:29:18 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: possibility to return the count of faces of some Object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/model.h

    r4579 r4677  
    141141
    142142  /** \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; };
    144144  /** \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; };
    148150
    149151 protected:
     
    174176  unsigned int     normalCount;     //!< A modelwide Counter for the normals.
    175177  unsigned int     texCoordCount;   //!< A modelwide Counter for the texCoord.
     178  unsigned int     faceCount;       //!< A modelwide Counter for the faces
    176179  Array<GLfloat>*  vertices;        //!< The Array that handles the Vertices.
    177180  Array<GLfloat>*  normals;         //!< The Array that handles the Normals.
Note: See TracChangeset for help on using the changeset viewer.