Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 1, 2005, 6:32:59 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: TextureToGL is now more modular

File:
1 edited

Legend:

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

    r5768 r5856  
    3434      inline bool hasAlpha() const {return bAlpha;}
    3535
     36      static GLuint loadTexToGL (const SDL_Surface* surface);
     37
     38      const SDL_Surface* const getStoredImage() { return this->image; };
     39
    3640    protected:
    3741      bool prepareSurface(SDL_Surface* input);
    3842      bool setSurface(SDL_Surface* newSurface);
     43      bool setTexture(GLuint texture) { this->texture = texture; };
    3944
    40       GLuint loadTexToGL ();
    4145
    4246    private:
Note: See TracChangeset for help on using the changeset viewer.