summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2021-01-30 15:34:46 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2021-01-30 15:34:46 -0500
commit76d9fc49dc9b52f2bc4ac53fd05930680d234406 (patch)
tree90810eab9d79fa218cb01e32b9bd2252075ecd8a
parent8e203fbd095c993d3394c0118497c1828202669f (diff)
node-2d: Remove unnecessary initializer.
-rw-r--r--starling/node-2d.scm8
1 files changed, 3 insertions, 5 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index 521c3bb..ab882e6 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -227,7 +227,9 @@
;; Lazily computed transformation matrices.
(local-matrix #:getter local-matrix #:init-form (make-identity-matrix4))
(world-matrix #:getter world-matrix #:init-form (make-identity-matrix4))
- (dirty-matrix? #:accessor dirty-matrix? #:init-form #t))
+ (dirty-matrix? #:accessor dirty-matrix? #:init-form #t)
+ ;; Bounding box for render culling, mouse selection, etc.
+ (bounding-box #:accessor bounding-box #:init-form (make-null-rect)))
(define-method (dirty! (node <node-2d>))
(set! (dirty-matrix? node) #t))
@@ -487,10 +489,6 @@
#:init-form 'default)
(start-time #:accessor start-time #:init-form 0))
-(define-method (initialize (sprite <animated-sprite>) initargs)
- (next-method)
- (update sprite 0))
-
(define-method (on-enter (sprite <animated-sprite>))
(update sprite 0))