Documentation ¶
Overview ¶
Package target defines different known output formats for the texture packer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Unknown format, should used for error responses Unknown = Format{"unknown", nil, ""} // Love format for the love2d game engine Love = Format{"love", loveTemplate, "lua"} // Starling format for the Starling game engine Starling = Format{"starling", starlingTemplate, "xml"} )
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format struct { // Name describes this output format Name string // Template is a go text template that will // be used to render the atlas descriptor file. Template *template.Template // Ext is the file extension that should be // used when the descriptor file is written to // the file system. Ext string }
Format represents a target atlas format.
func FormatNamed ¶
FormatNamed returns a known format with the given name.
Click to show internal directories.
Click to hide internal directories.