Changeset 3672 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 30, 2005, 3:02:58 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/environment.cc
r3658 r3672 29 29 Environment::Environment () : WorldEntity() 30 30 { 31 this->model = (Model*) ResourceManager:: load("models/reaplow.obj", OBJ);31 this->model = (Model*) ResourceManager::getInstance()->load("models/reaplow.obj", OBJ); 32 32 // this->model = new OBJModel("../data/models/fighter.obj"); 33 33 } -
orxonox/trunk/src/world_entities/player.cc
r3660 r3672 45 45 the player.cc for debug also 46 46 */ 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); 48 48 travelSpeed = 15.0; 49 49 velocity = new Vector(); -
orxonox/trunk/src/world_entities/projectile.cc
r3670 r3672 33 33 Projectile::Projectile () : WorldEntity() 34 34 { 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); 37 37 this->flightDirection = NULL; 38 38 this->currentLifeTime = 0.0f; … … 137 137 this->getAbsDir().matrix (matrix); 138 138 glMultMatrixf((float*)matrix); 139 //this->model->draw();140 this->projectileModel->draw();139 this->model->draw(); 140 //this->projectileModel->draw(); 141 141 142 142 glPopMatrix(); -
orxonox/trunk/src/world_entities/world_entity.cc
r3658 r3672 51 51 { 52 52 // if( collisioncluster != NULL) delete collisioncluster; 53 ResourceManager::unload(this->model); 53 if (this->model) 54 ResourceManager::getInstance()->unload(this->model); 54 55 } 55 56
Note: See TracChangeset
for help on using the changeset viewer.