From c50f5a3509e5afd5b652c59a204c5fff1f0214dd Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 30 Jun 2016 02:12:31 +0900 Subject: [PATCH] mobile: Rename Render -> Update --- mobile/impl_empty.go | 2 +- mobile/impl_mobile.go | 2 +- mobile/mobile.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile/impl_empty.go b/mobile/impl_empty.go index 0d751907b..e7cc27376 100644 --- a/mobile/impl_empty.go +++ b/mobile/impl_empty.go @@ -22,7 +22,7 @@ import ( "github.com/hajimehoshi/ebiten" ) -func render() error { +func update() error { return nil } diff --git a/mobile/impl_mobile.go b/mobile/impl_mobile.go index 5d3d30925..5aee11d7f 100644 --- a/mobile/impl_mobile.go +++ b/mobile/impl_mobile.go @@ -25,7 +25,7 @@ import ( var chError <-chan error -func render() error { +func update() error { if chError == nil { return errors.New("mobile: chError must not be nil: Start is not called yet?") } diff --git a/mobile/mobile.go b/mobile/mobile.go index 1451b091d..ed6de64d6 100644 --- a/mobile/mobile.go +++ b/mobile/mobile.go @@ -25,15 +25,15 @@ func Start(f func(*ebiten.Image) error, width, height int, scale float64, title return start(f, width, height, scale, title) } -// Render updates and renders the game. +// Update updates and renders the game. // // This should be called on every frame. // // On Android, this should be called at onDrawFrame of Renderer (used by GLSurfaceView). // // On iOS, this should be called at glkView:drawInRect: of GLKViewDelegate. -func Render() error { - return render() +func Update() error { + return update() } // UpdateTouchesOnAndroid updates the touch state on Android.