FS2_Open
Open source remastering of the Freespace 2 engine
pngutils.h
Go to the documentation of this file.
1 #ifndef _PNGUTILS_H
2 #define _PNGUTILS_H
3 
4 #include "cfile/cfile.h"
5 #include "globalincs/pstypes.h"
6 
7 #define PNG_ERROR_INVALID -1
8 #define PNG_ERROR_NONE 0
9 #define PNG_ERROR_READING 1
10 
11 // reading
12 extern int png_read_header(const char *real_filename, CFILE *img_cfp = NULL, int *w = 0, int *h = 0, int *bpp = 0, ubyte *palette = NULL);
13 extern int png_read_bitmap(const char *real_filename, ubyte *image_data, ubyte *bpp, int dest_size, int cf_type = CF_TYPE_ANY);
14 
15 #endif // _PNGUTILS_H
GLfloat GLfloat GLfloat GLfloat h
Definition: Glext.h:7280
Definition: cfile.h:28
int png_read_header(const char *real_filename, CFILE *img_cfp=NULL, int *w=0, int *h=0, int *bpp=0, ubyte *palette=NULL)
Definition: pngutils.cpp:38
unsigned char ubyte
Definition: pstypes.h:62
GLubyte GLubyte GLubyte GLubyte w
Definition: Glext.h:5679
int png_read_bitmap(const char *real_filename, ubyte *image_data, ubyte *bpp, int dest_size, int cf_type=CF_TYPE_ANY)
Definition: pngutils.cpp:133
#define CF_TYPE_ANY
Definition: cfile.h:42