Formats/Common:SSH: Difference between revisions

cleanup
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">
 
<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;
return nextChunk == 0x00;
 
}
// 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` the(seemingly only used for image data) willthe data beis compressed with [[Formats/Common:Refpack|RefPack]].
 
=== Texture Header ===
{| class="wikitable"
|}
 
=== Colour PalletPalette Header ===
 
(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"
|+