summaryrefslogtreecommitdiff
path: root/sly/mesh.scm
diff options
context:
space:
mode:
Diffstat (limited to 'sly/mesh.scm')
-rw-r--r--sly/mesh.scm24
1 files changed, 12 insertions, 12 deletions
diff --git a/sly/mesh.scm b/sly/mesh.scm
index 65154a7..c00d602 100644
--- a/sly/mesh.scm
+++ b/sly/mesh.scm
@@ -81,21 +81,21 @@
(match-lambda*
((i (? number? k))
(setter bv i k))
- ((i (? vector2? v))
+ ((i ($ <vector2> x y))
(let ((offset (* i 2)))
- (setter bv offset (vx v))
- (setter bv (1+ offset) (vy v))))
- ((i (? vector3? v))
+ (setter bv offset x)
+ (setter bv (1+ offset) y)))
+ ((i ($ <vector3> x y z))
(let ((offset (* i 3)))
- (setter bv offset (vx v))
- (setter bv (1+ offset) (vy v))
- (setter bv (+ offset 2) (vz v))))
- ((i (? vector4? v))
+ (setter bv offset x)
+ (setter bv (1+ offset) y)
+ (setter bv (+ offset 2) z)))
+ ((i ($ <vector4> x y z w))
(let ((offset (* i 4)))
- (setter bv offset (vx v))
- (setter bv (1+ offset) (vy v))
- (setter bv (+ offset 2) (vz v))
- (setter bv (+ offset 3) (vw v))))
+ (setter bv offset x)
+ (setter bv (1+ offset) y)
+ (setter bv (+ offset 2) z)
+ (setter bv (+ offset 3) w)))
((i (color? c))
(let ((offset (* i 4)))
(setter bv offset (color-r c))