Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3750 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc


Ignore:
Timestamp:
Apr 7, 2005, 7:37:25 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: made some sattelite object just for fun and to show on the convention tomarrow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/test_gun.cc

    r3710 r3750  
    4242  :  Weapon (parent, coordinate, direction)
    4343{
     44  this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN);
    4445  this->idleTime = 0.2f;
    4546}
     
    146147*/
    147148void TestGun::draw ()
    148 {}
     149{
     150  glMatrixMode(GL_MODELVIEW);
     151  glPushMatrix();
     152  float matrix[4][4];
     153 
     154  /* translate */
     155  glTranslatef (this->getAbsCoor ().x,
     156                this->getAbsCoor ().y,
     157                this->getAbsCoor ().z);
     158  /* rotate */
     159  this->getAbsDir ().matrix (matrix);
     160  glMultMatrixf((float*)matrix);
     161 
     162  this->model->draw(2);
     163  glPopMatrix();
     164}
    149165
Note: See TracChangeset for help on using the changeset viewer.