Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpriteSheet ¶
type SpriteSheet []SpriteSheetEntry
func NewSpriteSheet ¶
func NewSpriteSheet(data []byte, strideX, strideY int) (SpriteSheet, error)
func NewSpriteSheetFromConfig ¶
func NewSpriteSheetFromConfig(data []byte, configData []byte) (SpriteSheet, error)
func (SpriteSheet) ByName ¶
func (s SpriteSheet) ByName(name string) *ebiten.Image
type SpriteSheetConfig ¶
type SpriteSheetConfig struct { XMLName xml.Name `xml:"TextureAtlas"` Entries []SpriteSheetConfigEntry `xml:"SubTexture"` }
type SpriteSheetConfigEntry ¶
type SpriteSheetEntry ¶
type SpriteSheetEntry struct { ImageRef *ebiten.Image Name string }
Click to show internal directories.
Click to hide internal directories.