Documentation
¶
Index ¶
- Variables
- func CopyCanvasToEbitenImage(canvas pi.Canvas, dst *ebiten.Image)
- func CurrentGoroutineID() uint64
- func RunOrErr() error
- type EbitenGame
- func (g *EbitenGame) Draw(screen *ebiten.Image)
- func (g *EbitenGame) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (g *EbitenGame) LayoutF(outsideWidth, outsideHeight float64) (screenWidth, screenHeight float64)
- func (g *EbitenGame) Resize()
- func (g *EbitenGame) Update() error
Constants ¶
This section is empty.
Variables ¶
View Source
var RememberWindow bool
Functions ¶
func CopyCanvasToEbitenImage ¶
func CurrentGoroutineID ¶
func CurrentGoroutineID() uint64
Types ¶
type EbitenGame ¶
type EbitenGame struct {
// contains filtered or unexported fields
}
TODO split into multiple objects to reduce complexity
func RunEbitenGame ¶ added in v0.32.0
func RunEbitenGame() *EbitenGame
func (*EbitenGame) Draw ¶
func (g *EbitenGame) Draw(screen *ebiten.Image)
func (*EbitenGame) Layout ¶
func (g *EbitenGame) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
Layout method is not executed because LayoutF is
func (*EbitenGame) LayoutF ¶
func (g *EbitenGame) LayoutF(outsideWidth, outsideHeight float64) (screenWidth, screenHeight float64)
func (*EbitenGame) Resize ¶
func (g *EbitenGame) Resize()
func (*EbitenGame) Update ¶
func (g *EbitenGame) Update() error
Click to show internal directories.
Click to hide internal directories.