From 59a21620dc06948faab062cb7a8b8ab8b9966bc8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 25 Jun 2016 15:11:47 +0900 Subject: [PATCH] mobile: Move Render to a global func --- mobile/mobile.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mobile/mobile.go b/mobile/mobile.go index 5f1f38c6c..a62127361 100644 --- a/mobile/mobile.go +++ b/mobile/mobile.go @@ -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