Changeset 4168 in orxonox.OLD for orxonox/branches/md2_loader/src/world_entities
- Timestamp:
- May 11, 2005, 5:17:21 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/world_entities/test_entity.cc
r4163 r4168 28 28 TestEntity::TestEntity () : WorldEntity() 29 29 { 30 MD2Loader* md2loader = new MD2Loader();31 this->model = new t3DModel;32 30 this->md2Model = new MD2Model(); 33 31 34 md2loader->importMD2(this->model, "../data/models/tris.md2", "../data/models/tris.pcx"); 35 36 this->material = new Material("Sky"); 32 this->material = new Material("Clown"); 37 33 this->material->setDiffuseMap("../data/models/tris.pcx"); 38 34 this->material->setIllum(3); … … 70 66 glMultMatrixf((float*)matrix); 71 67 72 //this->model->draw(); 68 73 69 /* TESTGING TESTING TESTING */ 74 70 this->material->select(); 75 71 //this->md2Model->draw(this->model); 76 this->md2Model->animate( this->model);72 this->md2Model->animate(); 77 73 78 74 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.