Changeset 4684 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 24, 2005, 12:57:36 AM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/world_entity.cc
r4682 r4684 201 201 202 202 203 void WorldEntity::drawBVTree(int depth, int drawMode) 204 { 205 glMatrixMode(GL_MODELVIEW); 206 glPushMatrix(); 207 float matrix[4][4]; 208 209 /* translate */ 210 glTranslatef (this->getAbsCoor ().x, 211 this->getAbsCoor ().y, 212 this->getAbsCoor ().z); 213 /* rotate */ 214 this->getAbsDir ().matrix (matrix); 215 glMultMatrixf((float*)matrix); 216 217 if (this->obbTree) 218 this->obbTree->drawBV(depth, drawMode); 219 glPopMatrix(); 220 } 221 203 222 /** 204 223 \brief this handles incoming command messages -
orxonox/trunk/src/world_entities/world_entity.h
r4682 r4684 55 55 void processDraw (); 56 56 virtual void draw (); 57 inline void drawBVTree(int depth, int drawMode) { this->obbTree->drawBV(depth, drawMode); }57 void drawBVTree(int depth, int drawMode); 58 58 virtual void tick (float time); 59 59
Note: See TracChangeset
for help on using the changeset viewer.