mobile: Move Render to a global func

This commit is contained in:
Hajime Hoshi 2016-06-25 15:11:47 +09:00
parent f41455c2cf
commit 59a21620dc

View File

@ -20,8 +20,6 @@ import (
)
type EventDispatcher interface {
Render() error
// UpdateTouchesOnAndroid updates the touch state on Android.
//
// This should be called with onTouchEvent of GLSurfaceView like this:
@ -47,6 +45,10 @@ func Start(f func(*ebiten.Image) error, width, height int, scale float64, title
return start(f, width, height, scale, title)
}
func Render() error {
return render()
}
type position struct {
x int
y int
@ -56,10 +58,6 @@ type eventDispatcher struct {
touches map[int]position
}
func (e *eventDispatcher) Render() error {
return render()
}
// touch implements ui.Touch.
type touch struct {
id int