Versions in this module Expand all Collapse all v1 v1.1.0 Oct 14, 2021 Changes in this version type Packer + func New() (pack *Packer) + func (pack *Packer) DrawSub(id int, m pixel.Matrix) + func (pack *Packer) Pack() (err error) v1.0.0 Jun 21, 2021 Changes in this version + const AllowGrowth + const DebugDraw + const InsertFlipped + const OptimizeOnInsert + type AliasPacker struct + func NewAliasPacker(width, height int, flags uint8) (packer *AliasPacker) + func (packer *AliasPacker) Insert(alias interface{}, image *pixel.Sprite) (err error) + func (packer *AliasPacker) InsertV(alias interface{}, image *pixel.Sprite, flags uint8) (err error) + func (packer *AliasPacker) Picture() pixel.Picture + func (packer *AliasPacker) Replace(alias interface{}, sprite *pixel.Sprite) (err error) + func (packer AliasPacker) AliasOf(id int) interface{} + func (packer AliasPacker) Bounds() pixel.Rect + func (packer AliasPacker) BoundsOf(alias interface{}) pixel.Rect + func (packer AliasPacker) Center() pixel.Vec + func (packer AliasPacker) IdOf(alias interface{}) int + func (packer AliasPacker) SpriteFrom(alias interface{}) *pixel.Sprite + type Packer struct + func NewPacker(width, height int, flags uint8) *Packer + func (packer *Packer) Draw(t pixel.Target, matrix pixel.Matrix) + func (packer *Packer) GenerateId() int + func (packer *Packer) Insert(id int, image *pixel.Sprite) (err error) + func (packer *Packer) InsertPictureData(id int, pic *pixel.PictureData) (err error) + func (packer *Packer) InsertPictureDataV(id int, pic *pixel.PictureData, flags uint8) (err error) + func (packer *Packer) InsertV(id int, image *pixel.Sprite, flags uint8) (err error) + func (packer *Packer) Optimize() + func (packer *Packer) Picture() pixel.Picture + func (packer *Packer) Replace(id int, sprite *pixel.Sprite) (err error) + func (packer Packer) Bounds() pixel.Rect + func (packer Packer) BoundsOf(id int) pixel.Rect + func (packer Packer) Center() pixel.Vec + func (packer Packer) SpriteFrom(id int) *pixel.Sprite