summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-08-27 17:10:23 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-08-27 17:48:35 -0400
commit87b8688820fbc5de75a789279cb7dcd9ac3390ee (patch)
tree135cf68139bda9d84976d5d38a9f4d26b16a822f
parent9e998d7ea8b7401199ec77df78024de8699474d0 (diff)
Add sprite batch node.
-rw-r--r--starling/node-2d.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index 7867fe1..d0be0a2 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -76,6 +76,8 @@
start-time
change-animation
+ <sprite-batch>
+
<filled-rect>
region
color
@@ -381,6 +383,16 @@
;;;
+;;; Sprite Batch
+;;;
+
+(define-class <sprite-batch> (<node-2d>))
+
+(define-method (render* (batch <sprite-batch>) alpha)
+ (with-batched-sprites (next-method)))
+
+
+;;;
;;; Filled Rectangle
;;;