Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4462 in orxonox.OLD for orxonox/trunk/src/lib/graphics


Ignore:
Timestamp:
Jun 2, 2005, 12:50:37 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: md2Data loadable over the resourceManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/importer/md2Model.cc

    r4461 r4462  
    8181{
    8282  /* this creates the data container via ressource manager */
    83   this->data = new MD2Data(modelFileName, skinFileName);
     83  this->data = (MD2Data*)ResourceManager::getInstance()->load(modelFileName, MD2, RP_GAME, (void*)skinFileName);
    8484  this->scaleFactor = this->data->scaleFactor;
    8585
     
    9494MD2Model::~MD2Model()
    9595{
    96 
     96  ResourceManager::getInstance()->unload(this->data);
    9797}
    9898
Note: See TracChangeset for help on using the changeset viewer.