Changeset 3110 in orxonox.OLD for orxonox/branches/images/importer
- Timestamp:
- Dec 6, 2004, 1:11:56 AM (20 years ago)
- Location:
- orxonox/branches/images/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/images/importer/material.cc
r3108 r3110 564 564 bool Material::loadJPG (char* jpgName, GLuint* texture) 565 565 { 566 #ifdef HAVE_JPEGLIB_H 566 567 struct jpeg_decompress_struct cinfo; 567 568 Image *pImage = NULL; … … 649 650 } 650 651 return true; 652 #else /* HAVE_JPEGLIB_H */ 653 if (verbose >=1) 654 printf ("sorry, but you did not compile with jpeg-support.\nEither install SDL_image or jpeglib, and recompile to see the image\n"); 655 return false; 656 #endif /* HAVE_JPEGLIB_H */ 657 651 658 } 652 659 … … 980 987 bool Material::loadPNG(const char* pngName, GLuint* texture) 981 988 { 989 #ifdef HAVE_PNG_H 982 990 Image* pImage = new Image; 983 991 … … 1099 1107 1100 1108 return true; 1109 #else /* HAVE_PNG_H */ 1110 if (verbose >=1) 1111 printf ("sorry, but you did not compile with png-support.\nEither install SDL_image or libpng, and recompile to see the image\n"); 1112 return false; 1113 #endif /* HAVE_PNG_H */ 1114 1101 1115 } 1102 1116 -
orxonox/branches/images/importer/material.h
r3104 r3110 17 17 #if HAVE_CONFIG_H 18 18 #include <config.h> 19 #endif 19 #endif /* HAVE_CONFIG_H */ 20 20 21 21 #ifdef HAVE_SDL_SDL_IMAGE_H … … 23 23 #else 24 24 // IMAGE LIBS // 25 #ifdef HAVE_JPEGLIB_H 25 26 extern "C"{ // This has to be done, because not a c++ lib 26 27 #include <jpeglib.h> 27 28 } 29 #endif /* HAVE_JPEGLIB_H */ 30 #ifdef HAVE_PNG_H 28 31 #include <png.h> 29 #endif 32 #endif /* HAVE_PNG_H */ 33 #endif /* HAVE_SDL_SDL_IMAGE_H */ 30 34 31 35 //! Class to handle Materials.
Note: See TracChangeset
for help on using the changeset viewer.