Changeset 4189 in orxonox.OLD for orxonox/branches/md2_loader/src/world_entities/test_entity.cc
- Timestamp:
- May 15, 2005, 10:59:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/world_entities/test_entity.cc
r4187 r4189 28 28 TestEntity::TestEntity () : WorldEntity() 29 29 { 30 this->md2Model = new MD2Model();30 //this->md2Model = new MD2Model(); 31 31 32 MD2Model2* model2 = new MD2Model2(); 33 model2->loadModel("../data/models/tris.md2"); 34 35 this->material = new Material("Clown"); 36 this->material->setDiffuseMap("../data/models/tris.pcx"); 37 this->material->setIllum(3); 38 this->material->setAmbient(1.0, 1.0, 1.0); 32 this->md2Model2 = new MD2Model2(); 33 this->md2Model2->loadModel("../data/models/tris.md2"); 34 this->md2Model2->loadSkin("../data/models/tris.pcx"); 39 35 } 40 36 … … 66 62 67 63 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 68 64 this->getAbsDir().matrix (matrix); 69 65 glMultMatrixf((float*)matrix); 70 66 71 67 72 68 /* TESTGING TESTING TESTING */ 73 this->material->select();69 //this->material->select(); 74 70 //this->md2Model->draw(this->model); 75 this->md2Model->animate(); 71 //this->md2Model->animate(); 72 73 this->md2Model2->draw(); 76 74 77 75 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.