Versions in this module Expand all Collapse all v1 v1.2.0 Jul 8, 2019 Changes in this version type Texture + TextureHeight func() int + TextureWidth func() int v1.1.1 Jul 4, 2019 Changes in this version + var InvalidSubFile = errors.New("invalid sub file") + func GenerateSprite(textures []Texture, pixelRatio int, renderImage bool) (map[string]*TextureSprite, image.Image, error) + type GrowingPacker struct + func (p *GrowingPacker) Fit(blocks []*Node) + type Node struct + Down *Node + Height int + Key string + Right *Node + Used bool + Width int + X int + Y int + func NewNode(name string, width, height int) *Node + type StyleFile struct + Ext string + PixelRatio int + Type string + func ParseStyleFile(s string) (*StyleFile, error) + func (f *StyleFile) UnmarshalText(text []byte) error + func (f StyleFile) MarshalText() (text []byte, err error) + func (f StyleFile) String() string + type Texture interface + TextureImage func() image.Image + TextureName func() string + TexturePixelRatio func() int + type TextureMeta struct + Height int + Name string + PixelRatio int + Width int + func (t TextureMeta) ScaleTo(pixelRatio int) *TextureMeta + func (t TextureMeta) String() string + type TextureSprite struct + Image image.Image + OriginTextureMeta *TextureMeta + X int + Y int + func (s TextureSprite) String() string