mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-21 13:52:22 +02:00
18 lines
266 B
Go
18 lines
266 B
Go
package ui
|
|
|
|
import (
|
|
"github.com/hajimehoshi/ebiten/graphics"
|
|
)
|
|
|
|
type UI interface {
|
|
Start(widht, height, scale int, title string) Canvas
|
|
DoEvents()
|
|
Terminate()
|
|
}
|
|
|
|
type Canvas interface {
|
|
graphics.TextureFactory
|
|
Draw(func(graphics.Context))
|
|
IsClosed() bool
|
|
}
|