#include "../rw.h" #ifndef TXD_H #define TXD_H typedef struct Texture { char name[32]; char alpha[32]; int filterflags; int width, height; int bpp; unsigned char **data; unsigned char **data_a; int hasalpha; int channels; /* PC only */ int rasterformat; int mipmapcount; int compression; int *size; /* Used by OpenGL */ int format; } Texture; extern int ReadTxd(int start, FILE *txd, Texture **tl); extern void ReadPS2Txd(FILE *txd, Texture *texlist); extern void ReadPCTxd(FILE *txd, Texture *texlist); extern void DestroyTxd(Texture *texlist, int texcount); #endif