ebiten/ui/ui.go

18 lines
266 B
Go
Raw Normal View History

package ui
2013-06-18 17:48:41 +02:00
import (
2014-12-05 14:16:58 +01:00
"github.com/hajimehoshi/ebiten/graphics"
2013-06-18 17:48:41 +02:00
)
2013-11-29 19:21:10 +01:00
type UI interface {
2014-12-06 18:27:08 +01:00
Start(widht, height, scale int, title string) Canvas
2014-01-13 07:26:20 +01:00
DoEvents()
Terminate()
2013-11-29 19:21:10 +01:00
}
2013-12-09 14:40:54 +01:00
2014-05-11 14:24:37 +02:00
type Canvas interface {
2014-12-06 18:27:08 +01:00
graphics.TextureFactory
2013-12-13 22:10:24 +01:00
Draw(func(graphics.Context))
2014-05-12 03:04:28 +02:00
IsClosed() bool
2013-12-09 14:40:54 +01:00
}