diff options
-rw-r--r-- | starling/node-2d.scm | 8 |
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)) |