Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { OutputWidth int OutputHeight int Padding int OutputImagePath string OutputSchemaPath string IgnoreLargeImage bool Quality int MetaFilename string }
Config of the texture packer
type ImageInfo ¶
type ImageInfo struct { ID string `json:"id"` Width int `json:"width"` Height int `json:"height"` Left int `json:"x"` Top int `json:"y"` Name string `json:"name"` // contains filtered or unexported fields }
ImageInfo contains image file info and image properties
func NewImageInfoParseFrom ¶
NewImageInfoParseFrom parse image info from input file
func (*ImageInfo) CopyToImage ¶
CopyToImage copies a region of img to the canvas
func (*ImageInfo) PaddedHeight ¶
PaddedHeight returns image height with padding
func (*ImageInfo) PaddedWidth ¶
PaddedWidth returns image width with padding
type ImageJson ¶
type ImageJson struct { X int `json:"x"` Y int `json:"y"` W int `json:"width"` H int `json:"height"` }
ImageJson representation of image info
type MetaJson ¶
type MetaJson struct { Filename string `json:"filename"` W int `json:"width"` H int `json:"height"` Padding int `json:"padding"` }
MetaJson representation of atlas meta info
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents a tree node of the packer
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.