dbpf.files.fsh

Franks PC Shapes (Textures)

Members

Aliases

Entry
alias Entry = Tuple!(EntryHeader, "header", ubyte[], "data")

A tuple of an entry's header and its data. data is either palette or bitmap data. Remarks: After an entry's header is its bitmap, palette, or pixel color data.

Fsh
alias Fsh = Tuple!(Header, "header", Directory[], "directories", Entry[], "entries")

A FSH document.

Enums

BitmapType
enum BitmapType

FSH images can store their pixel data raw, or they can make use of Microsoft DXTC compressed formats.

DirectoryId
enum DirectoryId
EntryName
enum EntryName
Palette
enum Palette
Text
enum Text

Functions

read
Fsh read(ubyte[] file)
write
ubyte[] write(Fsh document)

Structs

Directory
struct Directory
EntryHeader
struct EntryHeader
Header
struct Header

See Also

  • <a href="https://www.wiki.sc4devotion.com/index.php?title=FSH">Franks PC Shapes</a> (SC4D Encyclopedia)
  • <a href="https://www.wiki.sc4devotion.com/index.php?title=FSH_Format">FSH Format</a> (SC4D Encyclopedia)

Meta

Authors

Chance Snow

License

MIT License