Changeset 7919 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- May 28, 2006, 3:48:13 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/planet.cc
r7221 r7919 109 109 void Planet::draw() const 110 110 { 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 123 111 this->material.select(); 124 112 125 // /WorldEntity::draw(); 126 this->getModel(0)->draw(); 127 // static_cast<VertexArrayModel*>(this->getModel(0))->debug(); 128 129 glPopMatrix(); 113 WorldEntity::draw(); 130 114 } 131 115 -
trunk/src/world_entities/skybox.cc
r7840 r7919 227 227 glDisable(GL_LIGHTING); 228 228 229 glPushAttrib(GL_ENABLE_BIT);230 229 glDisable(GL_FOG); 231 230 232 231 WorldEntity::draw(); 233 232 234 glPopAttrib();235 233 glPopAttrib(); 236 234
Note: See TracChangeset
for help on using the changeset viewer.