X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=image_png.h;h=af3ab97a7241c5a71cfce0c7b2fc30b6686cc38f;hp=045b1cb6c864365ece4c145eea80e67af806bd8f;hb=fbddb742e3f36efc25a5e701b2e29e14d24e5d75;hpb=fd091d66e2673b19eb9c7d73d95160ef874de5e6 diff --git a/image_png.h b/image_png.h index 045b1cb6..af3ab97a 100644 --- a/image_png.h +++ b/image_png.h @@ -24,9 +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); +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