Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/model.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.h
r4678 r4746 99 99 public: 100 100 Model(const char* modelName = NULL, MODEL_TYPE type = MODEL_DISPLAY_LIST); 101 virtual ~Model( void);101 virtual ~Model(); 102 102 103 void draw( void) const;103 void draw() const; 104 104 void draw(int groupNumber) const; 105 105 void draw(char* groupName) const; 106 106 107 107 /** \returns Count of the Models (Groups) in this File */ 108 inline int getGroupCount( void) const { return this->groupCount; };108 inline int getGroupCount() const { return this->groupCount; }; 109 109 110 110 /** \returns a Pointer to the Vertex-Array, if it was deleted it returns NULL */ 111 inline const GLfloat* getVertexArray( void) const { return this->vertices->getArray(); };111 inline const GLfloat* getVertexArray() const { return this->vertices->getArray(); }; 112 112 /** \returns the VertexCount of this Model */ 113 inline unsigned int getVertexCount( void) const { return this->vertexCount; };113 inline unsigned int getVertexCount() const { return this->vertexCount; }; 114 114 115 115 /** \returns a Pointer to the Normals-Array, if it was deleted it returns NULL */ 116 inline const GLfloat* getNormalsArray( void) const { return this->normals->getArray(); };116 inline const GLfloat* getNormalsArray() const { return this->normals->getArray(); }; 117 117 /** \returns the NormalsCount of this Model */ 118 inline unsigned int getNormalsCount( void) const { return this->normalCount; };118 inline unsigned int getNormalsCount() const { return this->normalCount; }; 119 119 120 120 /** \returns a Pointer to the TexCoord-Array, if it was deleted it returns NULL */ 121 inline const GLfloat* getTexCoordArray( void) const { return this->vTexture->getArray(); };121 inline const GLfloat* getTexCoordArray() const { return this->vTexture->getArray(); }; 122 122 /** \returns the TexCoord-Count of this Model */ 123 inline unsigned int getTexCoordCount( void) const { return this->texCoordCount; };123 inline unsigned int getTexCoordCount() const { return this->texCoordCount; }; 124 124 125 125 /** \returns the Count of Faces of this Model */ … … 141 141 bool setMaterial(const char* mtlString); 142 142 bool setMaterial(Material* mtl); 143 void finalize( void);143 void finalize(); 144 144 145 145 146 146 protected: 147 void cubeModel( void);147 void cubeModel(); 148 148 149 149 Material* findMaterialByName(const char* materialName); … … 154 154 155 155 private: 156 bool buildVertexNormals( void);156 bool buildVertexNormals(); 157 157 158 bool importToDisplayList( void);158 bool importToDisplayList(); 159 159 bool addGLElement(ModelFaceElement* elem); 160 160 161 bool importToVertexArray( void);161 bool importToVertexArray(); 162 162 163 bool deleteArrays( void);164 bool cleanup( void);163 bool deleteArrays(); 164 bool cleanup(); 165 165 166 166 private:
Note: See TracChangeset
for help on using the changeset viewer.