Documentation ¶
Overview ¶
Package atlas provides a packing algorithm for creating atlases of 2D textures.
The current implementation is based on the algorithm presented by Jim Scott in:
http://blackpawn.com/texts/lightmaps/default.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Atlas ¶
type Atlas struct {
// contains filtered or unexported fields
}
An Atlas contains the mapping information to pack a set of images into an array of bigger textures (called bins).
func (*Atlas) Pack ¶
Pack fits all the rectangles in the atlas. New bins are added when needed. It calls the Put method of each image with the corresponding mapping information.
Click to show internal directories.
Click to hide internal directories.