Changeset 5994 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Dec 9, 2005, 10:43:31 AM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aiming_turret.cc
r5930 r5994 169 169 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 170 170 171 this-> model->draw();171 this->getModel()->draw(); 172 172 glPopMatrix(); 173 173 } -
trunk/src/world_entities/weapons/bomb.cc
r5828 r5994 147 147 if (this->lifeCycle < .9) 148 148 { 149 if ( model)150 model->draw();149 if (this->getModel() != NULL) 150 this->getModel()->draw(); 151 151 } 152 152 else -
trunk/src/world_entities/weapons/cannon.cc
r5930 r5994 194 194 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 195 195 196 this-> model->draw();196 this->getModel()->draw(); 197 197 glPopMatrix(); 198 198 -
trunk/src/world_entities/weapons/ground_turret.cc
r5982 r5994 128 128 glMultMatrixf((float*)matrix); 129 129 130 if (this-> model)131 this-> model->draw();130 if (this->getModel()) 131 this->getModel()->draw(); 132 132 133 133 glPopMatrix(); -
trunk/src/world_entities/weapons/guided_missile.cc
r5915 r5994 202 202 glMultMatrixf((float*)matrix); 203 203 glScalef(2.0, 2.0, 2.0); 204 this-> model->draw();204 this->getModel()->draw(); 205 205 206 206 glPopMatrix(); -
trunk/src/world_entities/weapons/laser.cc
r5779 r5994 156 156 glMultMatrixf((float*)matrix); 157 157 glScalef(2.0, 2.0, 2.0); 158 this-> model->draw();158 this->getModel()->draw(); 159 159 glPopAttrib(); 160 160 glPopMatrix(); -
trunk/src/world_entities/weapons/projectile.cc
r5769 r5994 137 137 {} 138 138 139 140 void Projectile::draw () const141 {142 glMatrixMode(GL_MODELVIEW);143 glPushMatrix();144 145 float matrix[4][4];146 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);147 this->getAbsDir().matrix (matrix);148 glMultMatrixf((float*)matrix);149 this->model->draw();150 151 glPopMatrix();152 }153 -
trunk/src/world_entities/weapons/projectile.h
r5766 r5994 41 41 42 42 virtual void tick (float time); 43 virtual void draw () const;44 43 45 44 protected: -
trunk/src/world_entities/weapons/rocket.cc
r5819 r5994 187 187 glMultMatrixf((float*)matrix); 188 188 glScalef(2.0, 2.0, 2.0); 189 this-> model->draw();189 this->getModel()->draw(); 190 190 191 191 glPopMatrix(); -
trunk/src/world_entities/weapons/test_bullet.cc
r5779 r5994 181 181 glMultMatrixf((float*)matrix); 182 182 glScalef(2.0, 2.0, 2.0); 183 this-> model->draw();183 this->getModel()->draw(); 184 184 185 185 glPopMatrix(); -
trunk/src/world_entities/weapons/test_gun.cc
r5930 r5994 219 219 if( this->leftRight == W_RIGHT) 220 220 glScalef(1.0, 1.0, -1.0); 221 this-> model->draw(1);221 this->getModel()->draw(1); 222 222 glPopMatrix(); 223 223 … … 230 230 tmpRot = this->objectComponent1->getAbsDir().getSpacialAxis(); 231 231 glRotatef (this->objectComponent1->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 232 this-> model->draw(0);232 this->getModel()->draw(0); 233 233 glPopMatrix(); 234 234 } -
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 } -
trunk/src/world_entities/weapons/turret.h
r5750 r5994 26 26 virtual void destroy(); 27 27 28 virtual void draw() const;29 28 30 29 private:
Note: See TracChangeset
for help on using the changeset viewer.