Changeset 5858 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.cc
- Timestamp:
- Dec 1, 2005, 8:03:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.cc
r5856 r5858 19 19 20 20 #include "debug.h" 21 #include "graphics_engine.h" 22 21 22 // INCLUDING SDL_Image 23 23 #ifdef HAVE_SDL_IMAGE_H 24 24 #include <SDL_image.h> … … 58 58 } 59 59 60 61 60 /** 62 61 * loads an Image from a file to a Texture … … 65 64 bool Texture::loadImage(const char* imageName) 66 65 { 67 if ( GraphicsEngine::texturesEnabled)66 if (Texture::texturesEnabled) 68 67 { 69 68 if (this->image != NULL) … … 195 194 196 195 196 bool Texture::texturesEnabled = true; 197 198 /** 199 * enables, disables textures 200 * @param texturesEnabled true if the textures should be enabled 201 */ 202 void Texture::setTextureEnableState(bool texturesEnabled) 203 { 204 Texture::texturesEnabled = texturesEnabled; 205 } 206 207 208 ////////////////////////////////////// 209 // UTILITY FUNCTIONALITY OF TEXTURE // 210 ////////////////////////////////////// 197 211 /** 198 212 * Loads a Texture to the openGL-environment.
Note: See TracChangeset
for help on using the changeset viewer.