mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
mobile: Rename Render -> Update
This commit is contained in:
parent
3ebc5cc15a
commit
c50f5a3509
@ -22,7 +22,7 @@ import (
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
)
|
||||
|
||||
func render() error {
|
||||
func update() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -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?")
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user