Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 25, 2006, 11:28:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: now it should also be possible, to cache the resources, by suppling a LoadString.
This is vital to loading Resources, when you only know the TypeName and a LoadString, but not the c++-type and the LoadParameters as is the case when loading over the internet.

File:
1 edited

Legend:

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

    r9785 r9823  
    9999
    100100const Material* Material::selectedMaterial = NULL;
    101 
    102 
    103 /// TODO FIX THIS
    104 // Material& Material::operator=(const Material& m)
    105 // {
    106 //   this->setIllum(m.illumModel);
    107 //   this->setDiffuse(m.diffuse[0],m.diffuse[1],m.diffuse[2]);
    108 //   this->setAmbient(m.ambient[0],m.ambient[1],m.ambient[2]);
    109 //   this->setSpecular(m.specular[0],m.specular[1],m.specular[2]);
    110 //   this->setShininess(m.shininess);
    111 //   this->setTransparency(m.transparency);
    112 //
    113 //   if (this->diffuseTexture != NULL)
    114 //     ResourceManager::getInstance()->unload(this->diffuseTexture);
    115 //   if (m.diffuseTexture != NULL)
    116 //     this->diffuseTexture = (Texture*)ResourceManager::getInstance()->copy(m.diffuseTexture);
    117 //   this->ambientTexture = NULL; /// FIXME
    118 //   this->specularTexture = NULL; /// FIXME
    119 //
    120 //   this->setName(m.getName());
    121 // }
    122 
    123 
    124101
    125102/**
     
    296273  //ResourceManager::getInstance()->addImageDir(pathName);
    297274}
    298 
    299 // MAPPING //
    300 
    301275
    302276/**
Note: See TracChangeset for help on using the changeset viewer.