Changeset 6424 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 7, 2006, 11:07:22 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/ground_turret.cc
r6341 r6424 119 119 void GroundTurret::draw () const 120 120 { 121 glMatrixMode(GL_MODELVIEW); 122 glPushMatrix(); 123 float matrix[4][4]; 124 125 /* translate */ 126 glTranslatef (this->getAbsCoor ().x, 127 this->getAbsCoor ().y, 128 this->getAbsCoor ().z); 129 /* rotate */ 130 this->getAbsDir().matrix(matrix); 131 glMultMatrixf((float*)matrix); 132 133 if (this->getModel()) 134 this->getModel()->draw(); 135 136 glPopMatrix(); 121 WorldEntity::draw(); 122 137 123 if (this->left != NULL) 138 124 this->left->draw();
Note: See TracChangeset
for help on using the changeset viewer.