X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=image_png.h;h=af3ab97a7241c5a71cfce0c7b2fc30b6686cc38f;hb=727c2cbec73fbd199cef8e78c5403ae607f56347;hp=e83d8cb76d23bb7926c2e7ecb8353a389018b109;hpb=c3edd749ac26c6322eafa8303e592df3c32ffd25;p=xonotic%2Fdarkplaces.git diff --git a/image_png.h b/image_png.h index e83d8cb7..af3ab97a 100644 --- a/image_png.h +++ b/image_png.h @@ -24,10 +24,12 @@ #ifndef PNG_H #define PNG_H -qboolean PNG_OpenLibrary (void); +#include "qtypes.h" + +qbool PNG_OpenLibrary (void); void PNG_CloseLibrary (void); -unsigned char* PNG_LoadImage_BGRA (const unsigned char *f, int filesize); -qboolean PNG_SaveImage_preflipped (const char *filename, int width, int height, qboolean has_alpha, unsigned char *data); +unsigned char* PNG_LoadImage_BGRA (const unsigned char *f, int filesize, int *miplevel); +qbool PNG_SaveImage_preflipped (const char *filename, int width, int height, qbool has_alpha, unsigned char *data); #endif