X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=image_png.h;h=af3ab97a7241c5a71cfce0c7b2fc30b6686cc38f;hp=7862c84578568050ea77b1471074cfae01a23633;hb=5e2aad5fe210744e481993af1b17f8801a2095dd;hpb=6a75f042475ac3d601c0c85ce90f7e8cb05a11d3 diff --git a/image_png.h b/image_png.h index 7862c845..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 (const unsigned char *f, int filesize, int matchwidth, int matchheight); +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