spritesheet

package
v0.0.0-...-6e0df7b Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpriteInfo

type SpriteInfo struct {
	ShaderOutput sprite.ShaderOutput
	SpriteBounds image.Rectangle
}

type Spritesheet

type Spritesheet struct {
	Image image.Image
}

func (Spritesheet) OutputToWriter

func (s Spritesheet) OutputToWriter(w io.Writer) (err error)

type Spritesheets

type Spritesheets struct {
	sync.RWMutex
	Data map[string]Spritesheet
}

func GetSpritesheets

func GetSpritesheets(def manifest.Definition) (sheets Spritesheets)

func (*Spritesheets) SaveAll

func (sheets *Spritesheets) SaveAll(baseFilename string) (err error)

func (*Spritesheets) Store

func (sheets *Spritesheets) Store(key string, s Spritesheet)

Jump to

Keyboard shortcuts

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