Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2005, 12:21:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: automatic LOD-loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6002 r6005  
    240240void SpaceShip::draw () const
    241241{
    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();
    253243
    254244  this->getWeaponManager()->draw();
Note: See TracChangeset for help on using the changeset viewer.