X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=image_png.h;h=af3ab97a7241c5a71cfce0c7b2fc30b6686cc38f;hb=refs%2Fheads%2FCloudwalk%2Fcrash-handler;hp=c521afdc17a6e8c2f0305ddbce937ddf02f94ba3;hpb=8022854493e5595b924ed2d573255bff8faf6d4f;p=xonotic%2Fdarkplaces.git diff --git a/image_png.h b/image_png.h index c521afdc..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, 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