Versions in this module Expand all Collapse all v0 v0.1.0 Apr 26, 2020 Changes in this version + func Size(vertices []ebiten.Vertex) (w, h float32) + type Mesh struct + func NewMesh(ebitenImage *ebiten.Image, vertices []ebiten.Vertex, indeces []uint16, ...) *Mesh + func (m *Mesh) Draw(screen *ebiten.Image, dx, dy int, alpha float64) + func (m *Mesh) GetPosition() (int, int) + func (m *Mesh) MoveBy(x, y int) + type MouseStrokeSource struct + func (m *MouseStrokeSource) IsJustReleased() bool + func (m *MouseStrokeSource) Position() (int, int) + type Sprite struct + func NewSprite(ebitenImage *ebiten.Image, x, y, screenWidth, screenHeight int) *Sprite + func (s *Sprite) Draw(screen *ebiten.Image, dx, dy int, alpha float64) + func (s *Sprite) GetPosition() (int, int) + func (s *Sprite) MoveBy(x, y int) + type Spriter interface + Draw func(screen *ebiten.Image, dx, dy int, alpha float64) + GetPosition func() (int, int) + MoveBy func(x, y int) + type Stroke struct + func NewStroke(source StrokeSource) *Stroke + func (s *Stroke) DraggingSprite() Spriter + func (s *Stroke) IsReleased() bool + func (s *Stroke) Position() (int, int) + func (s *Stroke) PositionDiff() (int, int) + func (s *Stroke) SetDraggingSpriter(sprite Spriter) + func (s *Stroke) Update() + type StrokeSource interface + IsJustReleased func() bool + Position func() (int, int) + type View struct + func NewView(ebitenImage *ebiten.Image, x, y, screenWidth, screenHeight int, ...) *View + func NewViewWithMesh(ebitenImage *ebiten.Image, vertices []ebiten.Vertex, indeces []uint16, ...) *View + func (v *View) Compute(scr *ebiten.Image) error + func (v *View) Render(scr *ebiten.Image) error + func (v *View) SetMesh(vertices []ebiten.Vertex, indices []uint16) error