- Timestamp:
- May 28, 2005, 4:20:02 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/material.cc
r4357 r4370 282 282 \param pathName The Path to add. 283 283 */ 284 void Material::addTexturePath(c har* pathName)284 void Material::addTexturePath(const char* pathName) 285 285 { 286 286 ResourceManager::getInstance()->addImageDir(pathName); -
orxonox/trunk/src/lib/graphics/importer/material.h
r4136 r4370 48 48 49 49 50 void addTexturePath(char* pathName);50 static void addTexturePath(const char* pathName); 51 51 // MAPPING // 52 52 void setDiffuseMap(const char* dMap); -
orxonox/trunk/src/lib/graphics/importer/objModel.cc
r4118 r4370 75 75 strncpy(this->objPath, fileName, len); 76 76 this->objPath[len] = '\0'; 77 Material::addTexturePath(this->objPath); 77 78 PRINTF(1)("Resolved file %s to Path %s.\n", fileName, this->objPath); 78 79 } -
orxonox/trunk/src/lib/graphics/importer/texture.cc
r4357 r4370 44 44 glDeleteTextures(1, &this->texture); 45 45 } 46 47 /**48 \brief a Simple function that switches two char values49 \param a The first value50 \param b The second value51 */52 void Texture::swap (unsigned char &a, unsigned char &b)53 {54 unsigned char temp;55 temp = a;56 a = b;57 b = temp;58 }59 60 46 61 47 /** -
orxonox/trunk/src/lib/graphics/importer/texture.h
r4357 r4370 23 23 GLuint texture; //!< The Texture-ID of opengl from this Texture. 24 24 char* searchTextureInPaths(const char* texName) const; 25 void swap(unsigned char &a, unsigned char &b);26 25 27 26 bool bAlpha; //!< if the texture has an alpha channel. -
orxonox/trunk/src/lib/graphics/particles/particle_system.cc
r4357 r4370 321 321 case PARTICLE_SPRITE: 322 322 glMatrixMode(GL_MODELVIEW); 323 //glDisable(GL_DEPTH_TEST);323 glDisable(GL_DEPTH_TEST); 324 324 325 325 material->select(); -
orxonox/trunk/src/subprojects/particles/particle_fun.cc
r4357 r4370 109 109 else if(!strcmp(name, "SpreadAngle")) 110 110 { 111 tmpEmit->setSpread(atof(value) );111 tmpEmit->setSpread(atof(value), 0); 112 112 PRINT(4)("SpreadAngle set to %f\n", atof(value)); 113 113 } -
orxonox/trunk/src/util/resource_manager.cc
r4356 r4370 130 130 false otherwise 131 131 */ 132 bool ResourceManager::addImageDir(c har* imageDir)132 bool ResourceManager::addImageDir(const char* imageDir) 133 133 { 134 134 // check if the param is a Directory -
orxonox/trunk/src/util/resource_manager.h
r4166 r4370 78 78 79 79 bool checkDataDir(const char* fileInside); 80 bool addImageDir(c har* imageDir);80 bool addImageDir(const char* imageDir); 81 81 void* load(const char* fileName, ResourcePriority prio = RP_NO, 82 82 void* param1 = NULL, void* param2 = NULL, void* param3 = NULL);
Note: See TracChangeset
for help on using the changeset viewer.