Changeset 6175 in orxonox.OLD for branches/christmas_branche/src/lib
- Timestamp:
- Dec 20, 2005, 2:47:35 AM (19 years ago)
- Location:
- branches/christmas_branche/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/lib/graphics/importer/md2Model.cc
r6172 r6175 149 149 150 150 151 static sVec3D verticesList[MD2_MAX_VERTICES]; /* performance: created only once in a lifetime */ 152 151 153 /** 152 154 \brief sets the time in seconds passed since the last tick … … 160 162 this->animate(); 161 163 162 this->renderFrame(); 164 this->processLighting(); 165 this->interpolate(verticesList); 163 166 } 164 167 … … 169 172 * FIXME 170 173 */ 171 void MD2Model::draw() 172 { 173 174 175 176 // glPushMatrix(); 177 178 //this->renderFrame(); 179 180 // glPopMatrix(); 174 void MD2Model::draw() const 175 { 176 glPushMatrix(); 177 this->renderFrame(); 178 glPopMatrix(); 181 179 } 182 180 … … 185 183 \brief this is an internal function to render this special frame selected by animate() 186 184 */ 187 void MD2Model::renderFrame() 188 { 189 static sVec3D verticesList[MD2_MAX_VERTICES]; /* performance: created only once in a lifetime */ 185 void MD2Model::renderFrame() const 186 { 190 187 int* pCommands = this->data->pGLCommands; 191 188 … … 196 193 glCullFace(GL_BACK); 197 194 198 this->processLighting();199 this->interpolate(verticesList);200 195 201 196 this->data->material->select(); -
branches/christmas_branche/src/lib/graphics/importer/md2Model.h
r6172 r6175 143 143 virtual ~MD2Model(); 144 144 145 virtual void draw() ;145 virtual void draw() const; 146 146 147 147 void setAnim(int type); … … 160 160 void processLighting(); 161 161 void interpolate(sVec3D* verticesList); 162 void renderFrame() ;162 void renderFrame() const ; 163 163 164 164
Note: See TracChangeset
for help on using the changeset viewer.