mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
mobile: Rename Render -> Update
This commit is contained in:
parent
3ebc5cc15a
commit
c50f5a3509
@ -22,7 +22,7 @@ import (
|
|||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
)
|
)
|
||||||
|
|
||||||
func render() error {
|
func update() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
var chError <-chan error
|
var chError <-chan error
|
||||||
|
|
||||||
func render() error {
|
func update() error {
|
||||||
if chError == nil {
|
if chError == nil {
|
||||||
return errors.New("mobile: chError must not be nil: Start is not called yet?")
|
return errors.New("mobile: chError must not be nil: Start is not called yet?")
|
||||||
}
|
}
|
||||||
|
@ -25,15 +25,15 @@ func Start(f func(*ebiten.Image) error, width, height int, scale float64, title
|
|||||||
return start(f, width, height, scale, 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.
|
// This should be called on every frame.
|
||||||
//
|
//
|
||||||
// On Android, this should be called at onDrawFrame of Renderer (used by GLSurfaceView).
|
// On Android, this should be called at onDrawFrame of Renderer (used by GLSurfaceView).
|
||||||
//
|
//
|
||||||
// On iOS, this should be called at glkView:drawInRect: of GLKViewDelegate.
|
// On iOS, this should be called at glkView:drawInRect: of GLKViewDelegate.
|
||||||
func Render() error {
|
func Update() error {
|
||||||
return render()
|
return update()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateTouchesOnAndroid updates the touch state on Android.
|
// UpdateTouchesOnAndroid updates the touch state on Android.
|
||||||
|
Loading…
Reference in New Issue
Block a user