Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderSignature = "SP" PaletteSize = 1024 FileTypePAL FileType = 0 FileTypeRGBA FileType = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpriteFile ¶
type SpriteFile struct { Header struct { Signature string Version float32 PalettedFrameCount uint16 RGBAFrameCount uint16 RGBAIndex uint16 } Frames []*SpriteFrame Palette [PaletteSize]byte Images []*graphic.UniqueRGBA }
func Load ¶
func Load(data []byte) (f *SpriteFile, err error)
func (*SpriteFile) ImageAt ¶
func (f *SpriteFile) ImageAt(index character.SpriteIndex) *graphic.UniqueRGBA
Click to show internal directories.
Click to hide internal directories.