Changeset 6467 in orxonox.OLD for trunk/src/lib/graphics/importer/material.cc
- Timestamp:
- Jan 11, 2006, 11:46:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r6295 r6467 274 274 * @param dMap the Name of the Image to Use 275 275 */ 276 void Material::setDiffuseMap(const char* dMap )276 void Material::setDiffuseMap(const char* dMap, GLenum target) 277 277 { 278 278 PRINTF(5)("setting Diffuse Map %s\n", dMap); … … 283 283 //! @todo Textures from .mtl-file need special care. 284 284 if (dMap!= NULL) 285 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME );285 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, (void*)&target); 286 286 else 287 287 this->diffuseTexture = NULL; … … 293 293 @todo implement this 294 294 */ 295 void Material::setAmbientMap(const char* aMap )295 void Material::setAmbientMap(const char* aMap, GLenum target) 296 296 { 297 297 SDL_Surface* ambientMap; … … 304 304 @todo implement this 305 305 */ 306 void Material::setSpecularMap(const char* sMap )306 void Material::setSpecularMap(const char* sMap, GLenum target) 307 307 { 308 308 SDL_Surface* specularMap;
Note: See TracChangeset
for help on using the changeset viewer.