Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Atlas ¶
type Atlas struct {
Name string `atlas:"name"`
Size image.Point `atlas:"size"`
Format string `atlas:"format"`
Filter Filter `atlas:"filter"`
Scale []float64 `atlas:"scale"`
Repeat string `atlas:"repeat"`
Pma bool `atlas:"pma"`
Sprites []Sprite `atlas:"sprites"`
}
func DecodeAtlas ¶
DecodeAtlas Parses a spine atlas file line by line from an io.Reader and returns a struct describing the layout
type FileFormat ¶
type FileFormat string
const ( FormatPNG FileFormat = "png" FormatJPG FileFormat = "jpg" )
Click to show internal directories.
Click to hide internal directories.