Documentation ¶
Index ¶
- type PackedSheet
- type Sheet
- func (s *Sheet) AddSprite(key string, bounds, offset mgl32.Vec2) (out *Sprite)
- func (s *Sheet) Bind()
- func (s *Sheet) BufferID() uint32
- func (s *Sheet) Delete()
- func (s *Sheet) Exists(key string) (exists bool)
- func (s *Sheet) SetTexture(texture *core.Texture)
- func (s *Sheet) Size() int
- func (s *Sheet) Sprite(key string) (out *Sprite, err error)
- func (s *Sheet) Texture() *core.Texture
- func (s *Sheet) Unbind()
- type Sprite
- type SpriteInstanceList
- type SpriteInstances
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackedSheet ¶
func NewPackedSheet ¶
func NewPackedSheet(w, h int) (i *PackedSheet)
func (*PackedSheet) Copy ¶
func (s *PackedSheet) Copy(key string, src *PackedSheet) (err error)
func (*PackedSheet) Image ¶
func (s *PackedSheet) Image() image.Image
type Sheet ¶
type Sheet struct { Count int // contains filtered or unexported fields }
func (*Sheet) SetTexture ¶
type Sprite ¶
type Sprite struct {
// contains filtered or unexported fields
}
func (*Sprite) ImageBounds ¶
type SpriteInstanceList ¶
type SpriteInstanceList struct { *render.InstanceList // contains filtered or unexported fields }
func NewSpriteInstanceList ¶
func NewSpriteInstanceList(sheet *Sheet, pixelsPerUnit float32) *SpriteInstanceList
Click to show internal directories.
Click to hide internal directories.