ase

package
v0.0.0-...-06c1dd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaletteFlagName = 0x0001
)

Variables

View Source
var (
	ErrTooShort = errors.New("too short")
)

Functions

func LoadASE

func LoadASE(r io.Reader) (*sdl.Surface, error)

Types

type Cel

type Cel struct {
	ChunkBase
	// contains filtered or unexported fields
}

func (*Cel) UnmarshalBinary

func (c *Cel) UnmarshalBinary(data []byte) error

type CelCompressed

type CelCompressed struct {
	Cel
	// contains filtered or unexported fields
}

func (*CelCompressed) UnmarshalBinary

func (c *CelCompressed) UnmarshalBinary(data []byte) error

type CelLinked

type CelLinked struct {
	Cel
	// contains filtered or unexported fields
}

func (*CelLinked) UnmarshalBinary

func (c *CelLinked) UnmarshalBinary(data []byte) error

type CelRaw

type CelRaw struct {
	Cel
	// contains filtered or unexported fields
}

func (*CelRaw) UnmarshalBinary

func (c *CelRaw) UnmarshalBinary(data []byte) error

type CelType

type CelType uint16
const (
	CelTypeRaw CelType = iota
	CelTypeLinked
	CelTypeCompressed
)

type ChunkBase

type ChunkBase struct {
	// contains filtered or unexported fields
}

func (*ChunkBase) UnmarshalBinary

func (c *ChunkBase) UnmarshalBinary(data []byte) error

type ChunkType

type ChunkType uint16
const (
	ChunkTypeOldPalette1 ChunkType = 0x0004
	ChunkTypeOldPalette2 ChunkType = 0x0011
	ChunkTypeLayer       ChunkType = 0x2004
	ChunkTypeCel         ChunkType = 0x2005
	ChunkTypeMask        ChunkType = 0x2016
	ChunkTypePath        ChunkType = 0x2017
	ChunkTypeFrameTags   ChunkType = 0x2018
	ChunkTypePalette     ChunkType = 0x2019
	ChunkTypeUserData    ChunkType = 0x2020
)

func (ChunkType) String

func (t ChunkType) String() string

type Frame

type Frame struct {
	// contains filtered or unexported fields
}
type Header struct {
	// contains filtered or unexported fields
}

func (*Header) UnmarshalBinary

func (h *Header) UnmarshalBinary(p []byte) error

type Layer

type Layer struct {
	ChunkBase
	// contains filtered or unexported fields
}

func (*Layer) UnmarshalBinary

func (l *Layer) UnmarshalBinary(data []byte) error

type Palette

type Palette struct {
	ChunkBase
	// contains filtered or unexported fields
}

func (*Palette) UnmarshalBinary

func (p *Palette) UnmarshalBinary(data []byte) error

type PaletteEntry

type PaletteEntry struct {
	// contains filtered or unexported fields
}

func (*PaletteEntry) UnmarshalBinary

func (e *PaletteEntry) UnmarshalBinary(data []byte) error

type State

type State struct {
	Header Header
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL