Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7889 in orxonox.OLD for branches/gui/src/world_entities/planet.cc


Ignore:
Timestamp:
May 27, 2006, 3:14:45 AM (18 years ago)
Author:
bensch
Message:

gui: fixed one of the holy bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/world_entities/planet.cc

    r7221 r7889  
    109109void Planet::draw() const
    110110{
    111   glMatrixMode(GL_MODELVIEW);
    112   glPushMatrix();
    113 
    114   glShadeModel(GL_SMOOTH);
    115 
    116   /* translate */
    117   glTranslatef (this->getAbsCoor ().x,
    118                 this->getAbsCoor ().y,
    119                 this->getAbsCoor ().z);
    120   Vector tmpRot = this->getAbsDir().getSpacialAxis();
    121   glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    122 
    123111  this->material.select();
    124112
    125 //   /WorldEntity::draw();
    126   this->getModel(0)->draw();
    127  // static_cast<VertexArrayModel*>(this->getModel(0))->debug();
    128 
    129   glPopMatrix();
     113  WorldEntity::draw();
    130114}
    131115
Note: See TracChangeset for help on using the changeset viewer.