Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2005, 11:08:33 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: cleaned out the md2 model class, there is now only one model again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/test_entity.cc

    r4246 r4276  
    2828TestEntity::TestEntity () : WorldEntity()
    2929
    30   //this->md2Model = new MD2Model();
     30  this->md2Model = new MD2Model();
     31  this->md2Model->loadModel(ResourceManager::getFullName("models/tris.md2"));
     32  //  this->md2Model->loadSkin(ResourceManager::getFullName("models/tris.pcx"));
     33  this->md2Model->loadSkin("../data/models/tris.pcx");
    3134
    32   this->md2Model2 = new MD2Model2();
    33   this->md2Model2->loadModel(ResourceManager::getFullName("models/tris.md2"));
    34   this->md2Model2->loadSkin(ResourceManager::getFullName("../data/models/tris.pcx"));
    3535
    36   this->md2Model2->debug();
     36  this->md2Model->debug();
    3737}
    3838
     
    4444void TestEntity::tick (float time)
    4545{
    46   this->md2Model2->tick(time);
     46  this->md2Model->tick(time);
    4747}
    4848
     
    6767  glMultMatrixf((float*)matrix);
    6868 
    69 
    70   /* TESTGING TESTING TESTING */
    71   //this->material->select();
    72   //this->md2Model->draw(this->model);
    73   //this->md2Model->animate();
    74 
    75   this->md2Model2->draw();
     69  this->md2Model->draw();
    7670 
    7771
Note: See TracChangeset for help on using the changeset viewer.