Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpriteManager ¶
type SpriteManager struct {
// contains filtered or unexported fields
}
func NewSpriteManager ¶
func NewSpriteManager() *SpriteManager
func (*SpriteManager) MakeSquareSprite ¶
func (m *SpriteManager) MakeSquareSprite(logOfSpriteSize uint32, width, height float32) (SpriteKey, *SubImage)
logOfSpriteSize to real sprite size: 3 -> 8x8 4 -> 16x16 5 -> 32x32 6 -> 64x64 7 -> 128x128 8 -> 256x256
func (*SpriteManager) SetTarget ¶
func (m *SpriteManager) SetTarget(img *ebiten.Image, matCamera la.Mat3)
type SubImage ¶
type SubImage struct {
// contains filtered or unexported fields
}
func NewSubImage ¶
func NewSubImageFromImage ¶
func NewSubImageFromImage(img *ebiten.Image) *SubImage
func (*SubImage) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.