Changeset 4370 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- May 28, 2005, 4:20:02 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/graphics
- Files:
-
- 6 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();
Note: See TracChangeset
for help on using the changeset viewer.