Changeset 5994 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Dec 9, 2005, 10:43:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/turret.cc
r5930 r5994 147 147 void Turret::destroy () 148 148 {} 149 150 /**151 * draws the Turret152 */153 void Turret::draw () const154 {155 if (this->model != NULL)156 {157 /* draw gun body */158 glMatrixMode(GL_MODELVIEW);159 glPushMatrix();160 glTranslatef (this->getAbsCoor ().x,161 this->getAbsCoor ().y,162 this->getAbsCoor ().z);163 Vector tmpRot = this->getAbsDir().getSpacialAxis();164 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );165 166 this->model->draw();167 glPopMatrix();168 }169 }
Note: See TracChangeset
for help on using the changeset viewer.