diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-08-27 17:10:23 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-08-27 17:48:35 -0400 |
commit | 87b8688820fbc5de75a789279cb7dcd9ac3390ee (patch) | |
tree | 135cf68139bda9d84976d5d38a9f4d26b16a822f | |
parent | 9e998d7ea8b7401199ec77df78024de8699474d0 (diff) |
Add sprite batch node.
-rw-r--r-- | starling/node-2d.scm | 12 |
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 ;;; |