Changeset 3110 in orxonox.OLD for orxonox/branches/images/importer/material.cc
- Timestamp:
- Dec 6, 2004, 1:11:56 AM (19 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.