Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 10, 2006, 11:53:19 PM (18 years ago)
Author:
bensch
Message:

trunk: texture prepared for others than GL_TETURE_2D

File:
1 edited

Legend:

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

    r6139 r6465  
    1818  {
    1919    public:
    20       Texture(const char* imageName = NULL);
     20      Texture(const char* imageName = NULL, GLenum target = GL_TEXTURE_2D);
    2121  //  Texture(TEXTURE_TYPE type, int resolution);
    2222      ~Texture();
    2323
    24       bool loadImage(const char* imageName);
     24      bool loadImage(const char* imageName, GLenum target = GL_TEXTURE_2D);
    2525      virtual bool rebuild();
    2626
     
    4040      // Utility functionality:
    4141      SDL_Surface* prepareSurface(SDL_Surface* input, bool& hasAlpha) const;
    42       GLuint loadTexToGL (const SDL_Surface* surface) const;
     42      GLuint loadTexToGL (const SDL_Surface* surface, GLenum target = GL_TEXTURE_2D) const;
    4343
    4444    protected:
Note: See TracChangeset for help on using the changeset viewer.