Changeset 6172 in orxonox.OLD for branches/christmas_branche/src/lib/graphics/importer/md2Model.cc
- Timestamp:
- Dec 20, 2005, 1:56:59 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/lib/graphics/importer/md2Model.cc
r6169 r6172 160 160 this->animate(); 161 161 162 static sVec3D verticesList[MD2_MAX_VERTICES]; /* performance: created only once in a lifetime */ 163 this->processLighting(); 164 this->interpolate(verticesList); 162 this->renderFrame(); 165 163 } 166 164 … … 171 169 * FIXME 172 170 */ 173 void MD2Model::draw() const 174 { 175 // glPushMatrix(); 176 177 this->renderFrame(); 171 void MD2Model::draw() 172 { 173 174 175 176 // glPushMatrix(); 177 178 //this->renderFrame(); 178 179 179 180 // glPopMatrix(); … … 184 185 \brief this is an internal function to render this special frame selected by animate() 185 186 */ 186 void MD2Model::renderFrame() const187 void MD2Model::renderFrame() 187 188 { 188 189 static sVec3D verticesList[MD2_MAX_VERTICES]; /* performance: created only once in a lifetime */ … … 195 196 glCullFace(GL_BACK); 196 197 198 this->processLighting(); 199 this->interpolate(verticesList); 197 200 198 201 this->data->material->select();
Note: See TracChangeset
for help on using the changeset viewer.