Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAbilityTexture ¶
func NewMapTexture ¶
func NewTextureFromFile ¶
Types ¶
type NineSlice ¶
type SubTexture ¶
type SubTexture struct {
Name string `xml:"name,attr"`
X int `xml:"x,attr"`
Y int `xml:"y,attr"`
W int `xml:"w,attr"`
H int `xml:"h,attr"`
Top int `xml:"top,attr"`
Bottom int `xml:"bottom,attr"`
Left int `xml:"left,attr"`
Right int `xml:"right,attr"`
NiceSlice *NineSlice `xml:"-"`
}
func (*SubTexture) InitNineSlice ¶
func (s *SubTexture) InitNineSlice(mainTexture *ebiten.Image)
type TextureAtlas ¶
type TextureAtlas struct {
MainTexture *ebiten.Image `xml:"-"`
SubTextures []*SubTexture `xml:"SubTexture"`
// contains filtered or unexported fields
}
func NewTextureAtlasFromFile ¶
func NewTextureAtlasFromFile(file string) *TextureAtlas
func (*TextureAtlas) GetNineSlice ¶
func (a *TextureAtlas) GetNineSlice(name string) *NineSlice
Click to show internal directories.
Click to hide internal directories.