mobile: Rename Render -> Update

This commit is contained in:
Hajime Hoshi 2016-06-30 02:12:31 +09:00
parent 3ebc5cc15a
commit c50f5a3509
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ import (
"github.com/hajimehoshi/ebiten"
)
func render() error {
func update() error {
return nil
}

View File

@ -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?")
}

View File

@ -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.