| 37 | } BLP1HEAD; |
| 38 | |
| 39 | typedef struct BLP2HEAD |
| 40 | { |
| 41 | ILubyte Sig[4]; // "BLP2" signature |
| 42 | ILuint Type; // Texture type: 0 = JPG, 1 = DXTC |
| 43 | ILubyte Compression; // Compression mode: 1 = raw, 2 = DXTC |
| 44 | ILubyte AlphaBits; // 0, 1, or 8 |
| 45 | ILubyte AlphaType; // 0, 1, 7 or 8 |
| 46 | ILubyte HasMips; // 0 = no mips levels, 1 = has mips (number of levels determined by image size) |
| 47 | ILuint Width; // Image width in pixels |
| 48 | ILuint Height; // Image height in pixels |
| 49 | ILuint MipOffsets[16]; // The file offsets of each mipmap, 0 for unused |
| 50 | ILuint MipLengths[16]; // The length of each mipmap data block |
| 51 | } BLP2HEAD; |
| 52 | |
| 53 | // Data formats |
| 54 | #define BLP_TYPE_JPG 0 |
nothing calls this directly
no outgoing calls
no test coverage detected