Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7919 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
May 28, 2006, 3:48:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the gui branche back
merged with command:
https://svn.orxonox.net/orxonox/branches/gui
no conflicts

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/planet.cc

    r7221 r7919  
    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
  • trunk/src/world_entities/skybox.cc

    r7840 r7919  
    227227  glDisable(GL_LIGHTING);
    228228
    229   glPushAttrib(GL_ENABLE_BIT);
    230229  glDisable(GL_FOG);
    231230
    232231  WorldEntity::draw();
    233232
    234   glPopAttrib();
    235233  glPopAttrib();
    236234
Note: See TracChangeset for help on using the changeset viewer.