Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5857 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Dec 1, 2005, 7:38:14 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: enableTexture now a property of Texture and not GraphicsEngine → Texture is a Leaf now

@patrick: as you said so long ago, this is the better idea

File:
1 edited

Legend:

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

    r5856 r5857  
    3838      const SDL_Surface* const getStoredImage() { return this->image; };
    3939
     40      static void setTextureEnableState(bool texturesEnabled);
     41      /** @returns true if Textures are enabled */
     42      inline static bool getTextureEnableState() { return Texture::texturesEnabled; };
     43
    4044    protected:
    4145      bool prepareSurface(SDL_Surface* input);
     
    4549
    4650    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.
    5056  };
    5157
Note: See TracChangeset for help on using the changeset viewer.