X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=wad.h;h=2aaa1b8d30d92a8525066cdb97cf4d6fc47e540c;hb=8e7b42d509d36c9bdda23487612ff1ca8c139b1d;hp=9b3a3a4f7035ef3571ea0a648ba97d8ccc5635c0;hpb=09d3eabe1610af8dd0a5d8530d90adcc50d1083d;p=xonotic%2Fdarkplaces.git diff --git a/wad.h b/wad.h index 9b3a3a4f..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_GetTexture (char *name); // returns tempmempool allocated image data, width and height are in image_width and image_height -unsigned char *W_ConvertWAD3Texture(miptex_t *tex); // returns tempmempool allocated image data, width and height are in image_width and image_height +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(struct sizebuf_s *sb); // returns tempmempool allocated image data, width and height are in image_width and image_height #endif