MCPcopy Create free account
hub / github.com/DentonW/DevIL / BLP2HEAD

Class BLP2HEAD

DevIL/src-IL/src/il_blp.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37} BLP1HEAD;
38
39typedef 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected