types

package
v0.0.0-...-d387cfb Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Texture

type Texture struct {
	XMLName xml.Name      `xml:"SubTexture"`
	Name    string        `xml:"name,attr"`
	X       int           `xml:"x,attr"`
	Y       int           `xml:"y,attr"`
	Width   int           `xml:"width,attr"`
	Height  int           `xml:"height,attr"`
	Img     *ebiten.Image `xml:"-"`
}

type TextureAtlas

type TextureAtlas struct {
	XMLName   xml.Name  `xml:"TextureAtlas"`
	Textures  []Texture `xml:"SubTexture"`
	ImagePath string    `xml:"imagePath,attr"`
}

func LoadTextureAtlas

func LoadTextureAtlas(file string) (TextureAtlas, error)

Jump to

Keyboard shortcuts

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