diff options
author | David Thompson <dthompson2@worcester.edu> | 2022-07-31 12:48:32 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2022-07-31 12:48:32 -0400 |
commit | d42d1ca175820d802708ed1ec74f10b15e42e486 (patch) | |
tree | 30089c42d120dfc889986af8bc288fdd1f3e0641 | |
parent | 402a783e4d666639ee7268c03a90b01b94c10b2c (diff) |
node-2d: Clean up <sprite> render code.
-rw-r--r-- | starling/node-2d.scm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm index 09894a3..67ec6e6 100644 --- a/starling/node-2d.scm +++ b/starling/node-2d.scm @@ -690,13 +690,10 @@ (texture-height (texture sprite))) (define-method (render (sprite <sprite>) alpha) - (let* ((tex (texture sprite)) - (rect (size sprite)) - (tint (tint sprite)) - (matrix (world-matrix sprite))) - (draw-sprite* tex rect matrix - #:tint tint - #:texcoords (texture-gl-tex-rect tex)))) + (let ((t (texture sprite))) + (draw-sprite* t (size sprite) (world-matrix sprite) + #:tint (tint sprite) + #:texcoords (texture-gl-tex-rect t)))) ;;; |