Documentation ¶
Index ¶
- type Sprite
- func NewEmptySprite() (sprite Sprite)
- func NewSprite(img image.Image) (sprite Sprite)
- func NewSpriteFromRects(img image.Image, rects []image.Rectangle) (sprites []Sprite)
- func NewSpriteWithId(img image.Image, id string) (sprite Sprite)
- func NewSpritesFromRectMap(img image.Image, rectMap map[string]image.Rectangle) (sprites []Sprite)
- type SpriteP
- type SubImager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sprite ¶
type Sprite struct { Image *ebiten.Image // contains filtered or unexported fields }
func NewEmptySprite ¶
func NewEmptySprite() (sprite Sprite)
func NewSpriteFromRects ¶
func NewSpritesFromRectMap ¶
func (*Sprite) MarshalJSON ¶
func (*Sprite) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.