summaryrefslogtreecommitdiff
path: root/src/glm/glm.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-23 13:28:01 -0500
committersanine <sanine.not@pm.me>2022-08-23 13:28:01 -0500
commitae4e17fc743ca0344af818ab767db7311ea7829c (patch)
tree0dfad8ace50a0eaeb43f398a95f36dfd30822502 /src/glm/glm.c
parent711f530f7afe3358c674cf418ee067e7a4501699 (diff)
add basic transforms
Diffstat (limited to 'src/glm/glm.c')
-rw-r--r--src/glm/glm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/glm/glm.c b/src/glm/glm.c
new file mode 100644
index 0000000..786fcf0
--- /dev/null
+++ b/src/glm/glm.c
@@ -0,0 +1,13 @@
+#include <lua.h>
+#include <honeysuckle.h>
+
+
+void setup_glm(lua_State *L, int honey_index)
+{
+ lua_createtable(L, 0, 1);
+ int glm_index = lua_gettop(L);
+
+ setup_mat4(L, glm_index);
+ setup_transform(L, glm_index);
+ lua_setfield(L, honey_index, "glm");
+}