Changeset 3655 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/texture.cc
- Timestamp:
- Mar 26, 2005, 3:28:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/texture.cc
r3622 r3655 131 131 132 132 /** 133 \brief Constructor for a Texture 134 */ 135 Texture::Texture(const char* imageName) 136 { 137 this->pImage = new Image; 138 this->pImage->data = NULL; 139 this->map = NULL; 140 this->texture = 0; 141 this->loadImage(imageName); 142 } 143 144 /** 133 145 \brief Destructor of a Texture 134 146 … … 149 161 \returns pathName+texName if texName was found in the pathList. NULL if the Texture is not found. 150 162 */ 151 char* Texture::searchTextureInPaths(c har* texName) const163 char* Texture::searchTextureInPaths(const char* texName) const 152 164 { 153 165 char* tmpName = NULL; … … 215 227 216 228 #ifdef HAVE_SDL_SDL_IMAGE_H 217 bool Texture::loadImage(c har* imageName)229 bool Texture::loadImage(const char* imageName) 218 230 { 219 231 if (GraphicsEngine::texturesEnabled) … … 269 281 \todo Checks where to find the Image 270 282 */ 271 bool Texture::loadImage(c har* imageName)283 bool Texture::loadImage(const char* imageName) 272 284 { 273 285 if (GraphicsEngine::texturesEnabled)
Note: See TracChangeset
for help on using the changeset viewer.