Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5858 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.h


Ignore:
Timestamp:
Dec 1, 2005, 8:03:35 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: introducing multiframe-texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture.h

    r5857 r5858  
    1414struct SDL_Surface;
    1515
    16 //! an enumerator for different procedural texture-types
    17 typedef enum TEXTURE_TYPE { TEXTURE_RADIAL_ALIAS,
    18   TEXTURE_NOISE };
    19 
    2016//! A Class, that reads in Textures from different fileformats.
    2117  class Texture : public BaseObject
     
    2723
    2824      bool loadImage(const char* imageName);
    29       bool rebuild();
     25      virtual bool rebuild();
    3026
    3127      /** @returns The textureID of this texture.  */
     
    3329      /** @returns true if texture has alpha, false otherwise */
    3430      inline bool hasAlpha() const {return bAlpha;}
     31      /** @returns the stored image of this Texture */
     32      const SDL_Surface* const getStoredImage() const { return this->image; };
    3533
    36       static GLuint loadTexToGL (const SDL_Surface* surface);
    3734
    38       const SDL_Surface* const getStoredImage() { return this->image; };
    3935
    4036      static void setTextureEnableState(bool texturesEnabled);
    4137      /** @returns true if Textures are enabled */
    4238      inline static bool getTextureEnableState() { return Texture::texturesEnabled; };
     39
     40      // Utility functionality:
     41      static GLuint loadTexToGL (const SDL_Surface* surface);
    4342
    4443    protected:
Note: See TracChangeset for help on using the changeset viewer.