From fad1a83aadf5d01d873e70ca3e749262d02c85c7 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 31 Jul 2022 12:45:04 -0400 Subject: node-2d: Remove batch support from There's a node for this. --- starling/node-2d.scm | 14 +++----------- 1 file 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 () (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 ) 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)))) ;;; -- cgit v1.2.3