def

package
v0.0.0-...-f9770cb Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SpriteSheetType = 0x42

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	X uint32
	Y uint32
	W uint32
	H uint32
}

type ImageDetails

type ImageDetails struct {
	Image   image.Image
	Details string
}

type Metadata

type Metadata struct {
	Frames map[string][]Frame
}

func NewMetadata

func NewMetadata(r *Reader) *Metadata

type Reader

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

func NewReader

func NewReader() *Reader

func (*Reader) CanGenerateSpriteSheet

func (r *Reader) CanGenerateSpriteSheet() bool

func (*Reader) Load

func (r *Reader) Load(data []byte) ([]ImageDetails, error)

Jump to

Keyboard shortcuts

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