Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3672 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Mar 30, 2005, 3:02:58 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ResourceManager not totally static anymore, list-iterators, and so on

Location:
orxonox/trunk/src/world_entities
Files:
4 edited

Legend:

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

    r3658 r3672  
    2929Environment::Environment () : WorldEntity()
    3030{
    31   this->model = (Model*) ResourceManager::load("models/reaplow.obj", OBJ);
     31  this->model = (Model*) ResourceManager::getInstance()->load("models/reaplow.obj", OBJ);
    3232  //  this->model = new OBJModel("../data/models/fighter.obj");
    3333}
  • orxonox/trunk/src/world_entities/player.cc

    r3660 r3672  
    4545     the player.cc for debug also
    4646  */
    47   this->model = (Model*)ResourceManager::load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
     47  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
    4848  travelSpeed = 15.0;
    4949  velocity = new Vector();
  • orxonox/trunk/src/world_entities/projectile.cc

    r3670 r3672  
    3333Projectile::Projectile () : WorldEntity()
    3434{
    35   //this->model = new OBJModel("");
    36   this->projectileModel = new Primitive(P_SPHERE);
     35  this->model = (Model*)ResourceManager::getInstance()->load("cube", PRIM, RP_LEVEL);
     36  //  this->projectileModel = new Primitive(P_SPHERE);
    3737  this->flightDirection = NULL;
    3838  this->currentLifeTime = 0.0f;
     
    137137  this->getAbsDir().matrix (matrix);
    138138  glMultMatrixf((float*)matrix); 
    139   //this->model->draw();
    140   this->projectileModel->draw();
     139  this->model->draw();
     140  //this->projectileModel->draw();
    141141
    142142  glPopMatrix();
  • orxonox/trunk/src/world_entities/world_entity.cc

    r3658 r3672  
    5151{
    5252  // if( collisioncluster != NULL) delete collisioncluster;
    53   ResourceManager::unload(this->model);
     53  if (this->model)
     54    ResourceManager::getInstance()->unload(this->model);
    5455}
    5556
Note: See TracChangeset for help on using the changeset viewer.