summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2013-09-15 21:17:47 -0400
committerDavid Thompson <dthompson@member.fsf.org>2013-09-15 21:17:47 -0400
commit109d40a75d9135db707363b1747923d5b79eb18d (patch)
tree42abc6f8253f10e234fab1fa8156e02938b9ad38
parent787636a26527902f2e67e5c84ef147f53acfa6fa (diff)
Rename scene draw and update procedures.
They were inconsistent with the rest of the API.
-rw-r--r--2d/game-loop.scm4
-rw-r--r--2d/game.scm4
-rw-r--r--2d/private/game.scm12
3 files changed, 10 insertions, 10 deletions
diff --git a/2d/game-loop.scm b/2d/game-loop.scm
index 6d32bcb..1a9b518 100644
--- a/2d/game-loop.scm
+++ b/2d/game-loop.scm
@@ -144,7 +144,7 @@
(set-gl-matrix-mode (matrix-mode modelview))
(gl-load-identity)
(gl-clear (clear-buffer-mask color-buffer depth-buffer))
- (scene-draw current-scene)
+ (draw-scene current-scene)
(SDL:gl-swap-buffers)
(accumulate-fps! dt))
@@ -156,7 +156,7 @@ is the unused accumulator time."
(begin
(handle-events)
(update-agenda)
- (scene-update current-scene)
+ (update-scene current-scene)
(update (- accumulator tick-interval)))
accumulator))
diff --git a/2d/game.scm b/2d/game.scm
index 77a5cb1..3bd314e 100644
--- a/2d/game.scm
+++ b/2d/game.scm
@@ -68,8 +68,8 @@ creates a new scene."
scene-draw-proc
scene-state
scene-trigger
- scene-update
- scene-draw
+ update-scene
+ draw-scene
push-scene
replace-scene
pop-scene)
diff --git a/2d/private/game.scm b/2d/private/game.scm
index 63f0bd1..88a971f 100644
--- a/2d/private/game.scm
+++ b/2d/private/game.scm
@@ -46,12 +46,12 @@
(scene-state scene)
args))
-(define (scene-draw scene)
- "Draw scene."
+(define (draw-scene scene)
+ "Draw SCENE."
((scene-draw-proc scene) (scene-state scene)))
-(define (scene-update scene)
- "Update scene."
+(define (update-scene scene)
+ "Update SCENE."
((scene-update-proc scene) (scene-state scene)))
(export <scene>
@@ -63,8 +63,8 @@
scene-draw-proc
scene-state
scene-trigger
- scene-update
- scene-draw)
+ update-scene
+ draw-scene)
;;;
;;; Games