Changeset 6022 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Dec 10, 2005, 8:33:08 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/skybox.cc
r5994 r6022 20 20 #include "load_param.h" 21 21 #include "factory.h" 22 #include " model.h"23 22 #include "static_model.h" 23 #include "material.h" 24 24 25 25 using namespace std; … … 170 170 void SkyBox::rebuild() 171 171 { 172 Model* model = newModel();172 StaticModel* model = new StaticModel(); 173 173 174 174 model->addVertex (-0.5*size, -0.5*size, 0.5*size); -
trunk/src/world_entities/terrain.cc
r5994 r6022 40 40 41 41 // if (this->model != NULL) 42 //this->ssp = new SpatialSeparation(( AbstractModel*)this->model, 10.0f);42 //this->ssp = new SpatialSeparation((Model*)this->model, 10.0f); 43 43 } 44 44 -
trunk/src/world_entities/weapons/test_gun.cc
r5994 r6022 24 24 25 25 #include "world_entity.h" 26 #include " model.h"26 #include "static_model.h" 27 27 #include "test_bullet.h" 28 28 #include "weapon_manager.h" … … 219 219 if( this->leftRight == W_RIGHT) 220 220 glScalef(1.0, 1.0, -1.0); 221 this->getModel()->draw(1);221 static_cast<StaticModel*>(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->getModel()->draw(0);232 static_cast<StaticModel*>(this->getModel())->draw(0); 233 233 glPopMatrix(); 234 234 }
Note: See TracChangeset
for help on using the changeset viewer.