1 2 #ifndef WRITEPNG_H 3 #define WRITEPNG_H 4 5 #ifdef HAVE_LIBPNG 6 #define ENABLE_PNG 7 #endif 8 9 #ifdef ENABLE_PNG 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 #include <stdio.h> 16 17 #include "texture.h" 18 19 extern struct texture_file_fmt tex_fmt_png; 20 21 int png_load( FILE *fp, Texture *tex ) ; 22 23 #ifdef __cplusplus 24 } 25 #endif 26 27 28 #endif 29 30 #endif 31