Changeset 7889 in orxonox.OLD for branches/gui/src/world_entities/planet.cc
- Timestamp:
- May 27, 2006, 3:14:45 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/world_entities/planet.cc
r7221 r7889 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
Note: See TracChangeset
for help on using the changeset viewer.