Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidSubFile = errors.New("invalid sub file")
)
Functions ¶
func GenerateSprite ¶
Types ¶
type GrowingPacker ¶
type GrowingPacker struct {
// contains filtered or unexported fields
}
func (*GrowingPacker) Fit ¶
func (p *GrowingPacker) Fit(blocks []*Node)
type StyleFile ¶
openapi:strfmt filename
func ParseStyleFile ¶
func (StyleFile) MarshalText ¶
func (*StyleFile) UnmarshalText ¶
type TextureMeta ¶
type TextureMeta struct { Name string `json:"-"` Width int `json:"width"` Height int `json:"height"` PixelRatio int `json:"pixelRatio"` }
func (TextureMeta) ScaleTo ¶
func (t TextureMeta) ScaleTo(pixelRatio int) *TextureMeta
func (TextureMeta) String ¶
func (t TextureMeta) String() string
type TextureSprite ¶
type TextureSprite struct { *TextureMeta X int `json:"x"` Y int `json:"y"` OriginTextureMeta *TextureMeta `json:"-"` Image image.Image `json:"-"` }
func (TextureSprite) String ¶
func (s TextureSprite) String() string
Click to show internal directories.
Click to hide internal directories.