Changeset 3344 in orxonox.OLD for orxonox/branches/parenting/src/importer/texture.h
- Timestamp:
- Jan 5, 2005, 5:50:07 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/importer/texture.h
r3343 r3344 64 64 GLubyte *data; //!< The Image Data comes here! DANGER: uncompressed data. 65 65 }; 66 Image* pImage; 67 GLuint texture; 66 68 char* searchTextureInPaths(char* texName) const; 67 69 inline void swap(unsigned char &a, unsigned char &b); 68 70 public: 71 Texture(void); 72 ~Texture(void); 69 73 70 bool loadTexToGL (Image* pImage, GLuint* texture); 74 GLuint getTexture(void); 75 bool loadTexToGL (Image* pImage); 71 76 72 bool loadImage(char* imageName , GLuint* texture);77 bool loadImage(char* imageName); 73 78 #ifndef HAVE_SDL_SDL_IMAGE_H 74 79 75 bool loadBMP (char* bmpName , GLuint* texture);80 bool loadBMP (char* bmpName); 76 81 77 bool loadJPG (char* jpgName , GLuint* texture);82 bool loadJPG (char* jpgName); 78 83 79 84 /// TGA /// 80 85 81 bool loadTGA(const char * tgaName , GLuint* texture);82 bool loadUncompressedTGA(const char * filename, FILE * fTGA , GLuint* texture);83 bool loadCompressedTGA(const char * filename, FILE * fTGA , GLuint* texture);86 bool loadTGA(const char * tgaName); 87 bool loadUncompressedTGA(const char * filename, FILE * fTGA); 88 bool loadCompressedTGA(const char * filename, FILE * fTGA); 84 89 85 90 bool loadPNG(const char* pngName, GLuint* texture);
Note: See TracChangeset
for help on using the changeset viewer.