Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Sprite ¶
type Sprite struct {
Shader Shader
// contains filtered or unexported fields
}
func NewSprite ¶
func NewSprite(sheet *SpriteSheet) *Sprite
func (*Sprite) SetAnimation ¶
func (*Sprite) SpriteSheet ¶
func (s *Sprite) SpriteSheet() *SpriteSheet
type SpriteSheet ¶
func (*SpriteSheet) Add ¶
func (s *SpriteSheet) Add(tag string, frames []Frame)
func (*SpriteSheet) Animation ¶
func (s *SpriteSheet) Animation(tag string) *Animation
func (*SpriteSheet) FrameSize ¶
func (s *SpriteSheet) FrameSize() (w, h int)
func (*SpriteSheet) TagByName ¶
func (s *SpriteSheet) TagByName(tag string) *Tag
Click to show internal directories.
Click to hide internal directories.