Changeset 4679 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Jun 24, 2005, 12:10:46 AM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/environment.cc
r4597 r4679 32 32 { 33 33 this->setClassID(CL_ENVIRONMENT, "Environment"); 34 this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN); 34 35 } 35 36 -
orxonox/trunk/src/world_entities/test_entity.cc
r4488 r4679 1 1 2 2 3 /* 3 /* 4 4 orxonox - the future of 3D-vertical-scrollers 5 5 … … 13 13 ### File Specific 14 14 main-programmer: Patrick Boenzli 15 co-programmer: 15 co-programmer: 16 16 */ 17 17 … … 27 27 28 28 TestEntity::TestEntity () : WorldEntity(), PhysicsInterface(this) 29 { 29 { 30 30 this->setClassID(CL_TEST_ENTITY, "TestEntity"); 31 31 … … 35 35 36 36 37 TestEntity::~TestEntity () 37 TestEntity::~TestEntity () 38 38 { 39 39 delete this->md2Model; … … 47 47 48 48 49 void TestEntity::tick (float time) 49 void TestEntity::tick (float time) 50 50 { 51 51 this->md2Model->tick(time); … … 62 62 63 63 64 void TestEntity::draw () 64 void TestEntity::draw () 65 65 { 66 66 glMatrixMode(GL_MODELVIEW); 67 67 glPushMatrix(); 68 68 float matrix[4][4]; 69 69 70 70 71 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 71 72 this->getAbsDir().matrix (matrix); 72 73 glMultMatrixf((float*)matrix); 73 74 glScalef(0.2, 0.2, 0.2); 74 75 this->md2Model->draw(); 75 76 76 77 77 78 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.