summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-07-31 12:45:04 -0400
committerDavid Thompson <dthompson2@worcester.edu>2022-07-31 12:45:04 -0400
commitfad1a83aadf5d01d873e70ca3e749262d02c85c7 (patch)
treecd89bcbb31154641f82420be4b950546c423d8c8
parenta22ab92aea1c54322b5c5d46ea33c09f7975f4c7 (diff)
node-2d: Remove batch support from <sprite>
There's a <sprite-batch> node for this.
-rw-r--r--starling/node-2d.scm14
1 files changed, 3 insertions, 11 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index b46b454..abdf66a 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -679,9 +679,6 @@
(define-class <sprite> (<node-2d>)
(texture #:accessor texture #:init-keyword #:texture #:asset? #t #:watch? #t)
- (batch #:accessor batch
- #:init-keyword #:batch
- #:init-form #f)
(tint #:accessor tint
#:init-keyword #:tint
#:init-form white)
@@ -698,16 +695,11 @@
(define-method (render (sprite <sprite>) alpha)
(let* ((tex (texture sprite))
(rect (size sprite))
- (batch (batch sprite))
(tint (tint sprite))
(matrix (world-matrix sprite)))
- (if batch
- (sprite-batch-add* batch rect matrix
- #:tint tint
- #:texture-region tex)
- (draw-sprite* tex rect matrix
- #:tint tint
- #:texcoords (texture-gl-tex-rect tex)))))
+ (draw-sprite* tex rect matrix
+ #:tint tint
+ #:texcoords (texture-gl-tex-rect tex))))
;;;