Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2006, 3:13:34 PM (19 years ago)
Author:
bensch
Message:

resources: some minor implementations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/resources/src/lib/graphics/importer/material.cc

    r7221 r7229  
    8383    ResourceManager::getInstance()->unload(this->diffuseTexture);
    8484  if (m.diffuseTexture != NULL)
    85     this->diffuseTexture = (Texture*)ResourceManager::getInstance()->copy(m.diffuseTexture);
     85    this->diffuseTexture = dynamic_cast<Texture*>(ResourceManager::getInstance()->copy(m.diffuseTexture));
    8686  this->ambientTexture = NULL; /// FIXME
    8787  this->specularTexture = NULL; /// FIXME
     
    298298  //! @todo Textures from .mtl-file need special care.
    299299  if (!dMap.empty())
    300     this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, (int)target);
     300    this->diffuseTexture = dynamic_cast<Texture*>(ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, (int)target));
    301301  else
    302302    this->diffuseTexture = NULL;
Note: See TracChangeset for help on using the changeset viewer.