Changeset 3863 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/texture.h
- Timestamp:
- Apr 18, 2005, 10:10:26 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/texture.h
r3790 r3863 14 14 #include "debug.h" 15 15 16 #ifdef HAVE_SDL_IMAGE_H17 16 #include <SDL_image.h> 18 #else19 // IMAGE LIBS //20 #ifdef HAVE_JPEGLIB_H21 extern "C"{ // This has to be done, because not a c++ lib22 #include <jpeglib.h>23 }24 #endif /* HAVE_JPEGLIB_H */25 #ifdef HAVE_PNG_H26 #include <png.h>27 #endif /* HAVE_PNG_H */28 #endif /* HAVE_SDL_IMAGE_H */29 17 30 18 //! A Class, that reads in Textures from different fileformats. … … 47 35 SDL_Surface* map; //!< The map SDL initializes for this element. 48 36 char* searchTextureInPaths(const char* texName) const; 49 inlinevoid swap(unsigned char &a, unsigned char &b);37 void swap(unsigned char &a, unsigned char &b); 50 38 public: 51 39 Texture(void); … … 57 45 58 46 bool loadImage(const char* imageName); 59 #ifndef HAVE_SDL_IMAGE_H 47 }; 60 48 61 bool loadBMP (char* bmpName);62 63 bool loadJPG (char* jpgName);64 65 /// TGA ///66 67 bool loadTGA(const char * tgaName);68 bool loadUncompressedTGA(const char * filename, FILE * fTGA);69 bool loadCompressedTGA(const char * filename, FILE * fTGA);70 71 bool loadPNG(const char* pngName);72 #endif73 74 75 };76 49 #endif /* _TEXTURE_H */
Note: See TracChangeset
for help on using the changeset viewer.