X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=wad.h;h=2aaa1b8d30d92a8525066cdb97cf4d6fc47e540c;hb=3ed608ba823591f983dc8068fbdfdc70b6daef20;hp=3c4297d940efd4cc1e41751130b8db3491ef6eaf;hpb=ae946773a0fdc85c9fcd22615744a9b0e1b1b0c0;p=xonotic%2Fdarkplaces.git diff --git a/wad.h b/wad.h index 3c4297d9..2aaa1b8d 100644 --- a/wad.h +++ b/wad.h @@ -22,6 +22,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef WAD_H #define WAD_H +#include +struct sizebuf_s; + //=============== // TYPES //=============== @@ -66,12 +69,12 @@ typedef struct lumpinfo_s } lumpinfo_t; void W_UnloadAll(void); -unsigned char *W_GetLumpName(const char *name); +unsigned char *W_GetLumpName(const char *name, int64_t *returnfilesize); // halflife texture wads void W_LoadTextureWadFile(char *filename, int complain); unsigned char *W_GetTextureBGRA(char *name); // returns tempmempool allocated image data, width and height are in image_width and image_height -unsigned char *W_ConvertWAD3TextureBGRA(sizebuf_t *sb); // returns tempmempool allocated image data, width and height are in image_width and image_height +unsigned char *W_ConvertWAD3TextureBGRA(struct sizebuf_s *sb); // returns tempmempool allocated image data, width and height are in image_width and image_height #endif