shithub: qk1

ref: 26684157e0d0b5885f33e88c4d31805f48fa5d15
dir: /wad.h/

View raw version
typedef struct Wad Wad;
#pragma incomplete Wad

typedef struct
{
	int width;
	int height;
	pixel_t data[];
}qpic_t;

struct texture_s;

Wad *W_OpenWad(char *path);
qpic_t *W_ReadQpic(Wad *w, char *name, mem_user_t *c);
int W_ReadMipTex(Wad *wad, char *name, struct texture_s *t);
int W_ReadPixels(Wad *w, char *name, pixel_t *out, int num);
int W_ReadRaw(Wad *w, char *name, byte *out, int num);