Changeset 3454 in orxonox.OLD for orxonox/trunk/src/importer/texture.h
- Timestamp:
- Mar 3, 2005, 6:35:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/importer/texture.h
r3365 r3454 11 11 12 12 #include "../stdincl.h" 13 extern int verbose;14 13 #ifdef HAVE_SDL_SDL_IMAGE_H 15 14 #include <SDL/SDL_image.h> … … 65 64 GLubyte *data; //!< The Image Data comes here! DANGER: uncompressed data. 66 65 }; 67 Image* pImage; 68 GLuint texture; 69 SDL_Surface* map; 66 Image* pImage; //!< The data of an Image 67 GLuint texture; //!< The Texture-ID of opengl from this Texture. 68 SDL_Surface* map; //!< The map SDL initializes for this element. 70 69 char* searchTextureInPaths(char* texName) const; 71 70 inline void swap(unsigned char &a, unsigned char &b); … … 73 72 Texture(void); 74 73 ~Texture(void); 75 76 inline GLuint getTexture(void) {return this->texture;} //!< \returns The textureID of this texture.74 /** \returns The textureID of this texture. */ 75 inline GLuint getTexture(void) {return this->texture;} 77 76 bool loadTexToGL (Image* pImage); 78 77 … … 90 89 bool loadCompressedTGA(const char * filename, FILE * fTGA); 91 90 92 bool loadPNG(const char* pngName , GLuint* texture);91 bool loadPNG(const char* pngName); 93 92 #endif 94 93
Note: See TracChangeset
for help on using the changeset viewer.