Changeset 6465 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.h
- Timestamp:
- Jan 10, 2006, 11:53:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.h
r6139 r6465 18 18 { 19 19 public: 20 Texture(const char* imageName = NULL );20 Texture(const char* imageName = NULL, GLenum target = GL_TEXTURE_2D); 21 21 // Texture(TEXTURE_TYPE type, int resolution); 22 22 ~Texture(); 23 23 24 bool loadImage(const char* imageName );24 bool loadImage(const char* imageName, GLenum target = GL_TEXTURE_2D); 25 25 virtual bool rebuild(); 26 26 … … 40 40 // Utility functionality: 41 41 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; 43 43 44 44 protected:
Note: See TracChangeset
for help on using the changeset viewer.