Changeset 5858 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.h
- Timestamp:
- Dec 1, 2005, 8:03:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.h
r5857 r5858 14 14 struct SDL_Surface; 15 15 16 //! an enumerator for different procedural texture-types17 typedef enum TEXTURE_TYPE { TEXTURE_RADIAL_ALIAS,18 TEXTURE_NOISE };19 20 16 //! A Class, that reads in Textures from different fileformats. 21 17 class Texture : public BaseObject … … 27 23 28 24 bool loadImage(const char* imageName); 29 bool rebuild();25 virtual bool rebuild(); 30 26 31 27 /** @returns The textureID of this texture. */ … … 33 29 /** @returns true if texture has alpha, false otherwise */ 34 30 inline bool hasAlpha() const {return bAlpha;} 31 /** @returns the stored image of this Texture */ 32 const SDL_Surface* const getStoredImage() const { return this->image; }; 35 33 36 static GLuint loadTexToGL (const SDL_Surface* surface);37 34 38 const SDL_Surface* const getStoredImage() { return this->image; };39 35 40 36 static void setTextureEnableState(bool texturesEnabled); 41 37 /** @returns true if Textures are enabled */ 42 38 inline static bool getTextureEnableState() { return Texture::texturesEnabled; }; 39 40 // Utility functionality: 41 static GLuint loadTexToGL (const SDL_Surface* surface); 43 42 44 43 protected:
Note: See TracChangeset
for help on using the changeset viewer.