summaryrefslogtreecommitdiff
path: root/demo/main.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-11-30 13:28:20 -0600
committersanine-a <sanine.not@pm.me>2020-11-30 13:28:20 -0600
commitbe49795636e5a9ede3742d077701f48e9316e121 (patch)
treeba82da725b991074af858e967c2a7adedfc2c544 /demo/main.lua
parent352dc513efa7cb100acb03d0a991010234e04f12 (diff)
fix bug in glm binding memory allocators
Diffstat (limited to 'demo/main.lua')
-rw-r--r--demo/main.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/demo/main.lua b/demo/main.lua
index ec5746a..3fabe00 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -1,3 +1,12 @@
-local v = honey.glm.vec3()
+local v = honey.glm.vec3{1, 2, 3}
+
+local M = honey.glm.mat3()
+M:set(1,3, 1)
+
+print(M:mulv(v))
+
+print(v)
+print(honey.glm.vec3{2, 0.001, 0})
+print(honey.glm.vec4{100, 0, 0, 20.44})
v.dot(v, v)