mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
25 lines
404 B
Go
25 lines
404 B
Go
package ebiten
|
|
|
|
import (
|
|
"github.com/hajimehoshi/go-ebiten/graphics"
|
|
)
|
|
|
|
type ScreenSizeUpdatedEvent struct {
|
|
Width int
|
|
Height int
|
|
}
|
|
|
|
type InputStateUpdatedEvent struct {
|
|
X int
|
|
Y int
|
|
}
|
|
|
|
type UI interface {
|
|
PollEvents()
|
|
InitTextures(func(graphics.TextureFactory))
|
|
Draw(func(graphics.Canvas))
|
|
|
|
ScreenSizeUpdated() <-chan ScreenSizeUpdatedEvent
|
|
InputStateUpdated() <-chan InputStateUpdatedEvent
|
|
}
|