Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 5:07:55 PM (17 years ago)
Author:
nicolasc
Message:

loads of tests, not really working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/test_entity2.cc

    r9987 r9989  
    8484  this->material->setAmbient(1.0, 0.0, 1.0);
    8585
     86  this->angle = 0;
     87  this->rotationSpeed = 10;
     88
    8689  //this->material->setDiffuseMap("maps/torp2.png");
    8790}
     
    9598{
    9699  WorldEntity::loadParams(root);
     100}
     101
     102
     103void TestEntity2::updateAngle()
     104{
     105  this->angle = this->angle + this->rotationSpeed;
    97106}
    98107
     
    231240  glEnd();
    232241
     242  //this->angle += this->rotationSpeed;
     243  glRotatef(this->angle, 0.0, 1.0, 0.0);
     244
    233245  glPopMatrix();
    234246  glPopAttrib();
     
    245257  this->setParent(pl);
    246258
    247 }
    248 
    249 
    250 
    251 
    252 
    253 
     259  this->updateAngle();
     260}
     261
     262
     263
     264
     265
     266
Note: See TracChangeset for help on using the changeset viewer.