52
edits
GlitcherOG (talk | contribs) m (Finished SSH Import) |
(cleanup) |
||
=== Texture Entry ===
==== Entry Texture Types ====
All shape entries start with a header that looks like this:
<syntaxhighlight lang="c++" line="1">
struct ShapeChunkHeader {
uint8_t chunkType;▼
uint24_t nextChunk;▼
// Note that the above isn't a standard type.▼
// You can probably represent it as a bitfield if you want.▼
// In layman's terms, if the next chunk offset is 0, then▼
▲uint8_t chunkType;
// it's the end of this shape.▼
bool IsEndOfShape() {▼
▲uint24_t nextChunk;
}
▲// Note that the above isn't a standard type.
▲// You can probably represent it as a bitfield if you want.
▲// In layman's terms, if the next chunk offset is 0, then
▲// it's the end of this shape.
▲bool IsEndOfShape() {
▲return nextChunk == 0x0;
};
</syntaxhighlight>
{| class="wikitable"
|+
|8-bit Data, RefPack Compressed
|}
If `(type & 0x80) == 1`
=== Texture Header ===
{| class="wikitable"
|}
=== Colour
(this is the same as the image header, it's just [color count] x 1 sized)
{| class="wikitable"
|+
|Unknown
|}
After the header is *Width* count BGRA8888 colors used to make up the palette.
=== Long Name Header ===
{| class="wikitable"
|+
|