Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 7, 2005, 4:26:35 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new Model Definitions, to make it more safe (better output)

File:
1 edited

Legend:

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

    r4038 r4106  
    9999  bool finalized;             //!< Sets the Object to be finalized.
    100100
     101  int vertexCount;            //!< A modelwide Counter for vertices.
     102  int normalCount;            //!< A modelwide Counter for the normals.
     103  int texCoordCount;          //!< A modelwide Counter for the texCoord.
    101104  Array* vertices;            //!< The Array that handles the Vertices.
    102   int verticesCount;          //!< A global Counter for vertices.
    103105  Array* normals;             //!< The Array that handles the Normals.
    104106  Array* vTexture;            //!< The Array that handles the VertexTextureCoordinates.
     
    158160  bool setMaterial(Material* mtl);
    159161  void finalize(void);
     162
     163  /** \returns The number of Vertices of the Model */
     164  inline int getVertexCount(void) const {return this->vertexCount;}
     165  /** \returns The number of Normals of the Model */
     166  inline int getNormalCount(void) const {return this->normalCount;}
     167  /** \returns The number of Texture Coordinates of the Model*/
     168  inline int getTexCoordCount(void) const {return this->texCoordCount;}
    160169};
    161170
Note: See TracChangeset for help on using the changeset viewer.