summaryrefslogtreecommitdiff
path: root/starling/node-2d.scm
diff options
context:
space:
mode:
Diffstat (limited to 'starling/node-2d.scm')
-rw-r--r--starling/node-2d.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/starling/node-2d.scm b/starling/node-2d.scm
index 1559a54..bb64d99 100644
--- a/starling/node-2d.scm
+++ b/starling/node-2d.scm
@@ -209,15 +209,15 @@
;;;
(define-class <node-2d> (<node>)
- (origin #:getter origin #:init-form #v(0.0 0.0) #:init-keyword #:origin)
- (position #:getter position #:init-form #v(0.0 0.0) #:init-keyword #:position)
+ (origin #:getter origin #:init-form (vec2 0.0 0.0) #:init-keyword #:origin)
+ (position #:getter position #:init-form (vec2 0.0 0.0) #:init-keyword #:position)
(rotation #:accessor rotation #:init-form 0.0 #:init-keyword #:rotation)
- (scale #:getter scale #:init-form #v(1.0 1.0) #:init-keyword #:scale)
- (skew #:getter skew #:init-form #v(0.0 0.0) #:init-keyword #:skew)
+ (scale #:getter scale #:init-form (vec2 1.0 1.0) #:init-keyword #:scale)
+ (skew #:getter skew #:init-form (vec2 0.0 0.0) #:init-keyword #:skew)
;; Some extra position vectors for defeating "temporal aliasing"
;; when rendering.
- (last-position #:getter last-position #:init-form #v(0.0 0.0))
- (render-position #:getter render-position #:init-form #v(0.0 0.0))
+ (last-position #:getter last-position #:init-form (vec2 0.0 0.0))
+ (render-position #:getter render-position #:init-form (vec2 0.0 0.0))
;; Lazily computed transformation matrices.
(local-matrix #:getter local-matrix #:init-form (make-identity-matrix4))
(world-matrix #:getter world-matrix #:init-form (make-identity-matrix4))