Changeset 6005 in orxonox.OLD for trunk/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Dec 10, 2005, 12:21:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r6002 r6005 240 240 void SpaceShip::draw () const 241 241 { 242 glMatrixMode(GL_MODELVIEW); 243 glPushMatrix(); 244 /* translate */ 245 glTranslatef (this->getAbsCoor ().x, 246 this->getAbsCoor ().y, 247 this->getAbsCoor ().z); 248 /* rotate */ 249 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 250 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 251 this->getModel()->draw(); 252 glPopMatrix(); 242 this->drawLODsafe(); 253 243 254 244 this->getWeaponManager()->draw();
Note: See TracChangeset
for help on using the changeset viewer.