ebiten/ui/ui.go
2014-12-07 03:27:55 +09:00

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
}