Changeset 5857 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- Dec 1, 2005, 7:38:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.h
r5856 r5857 38 38 const SDL_Surface* const getStoredImage() { return this->image; }; 39 39 40 static void setTextureEnableState(bool texturesEnabled); 41 /** @returns true if Textures are enabled */ 42 inline static bool getTextureEnableState() { return Texture::texturesEnabled; }; 43 40 44 protected: 41 45 bool prepareSurface(SDL_Surface* input); … … 45 49 46 50 private: 47 GLuint texture; //!< The Texture-ID of opengl from this Texture. 48 bool bAlpha; //!< if the texture has an alpha channel. 49 SDL_Surface* image; //!< The SDL_Surfce that stores the Texture on it. 51 GLuint texture; //!< The Texture-ID of opengl from this Texture. 52 bool bAlpha; //!< if the texture has an alpha channel. 53 SDL_Surface* image; //!< The SDL_Surfce that stores the Texture on it. 54 55 static bool texturesEnabled; //!< If the Textures are enabled. 50 56 }; 51 57
Note: See TracChangeset
for help on using the changeset viewer.