summaryrefslogtreecommitdiff
path: root/src/glm/glm.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-23 13:38:27 -0500
committersanine <sanine.not@pm.me>2022-08-23 13:38:27 -0500
commit3afbf2a13b2dada445fb667bf25600407fea480a (patch)
tree551329e6f74fc9f177616de0d6739e8b5331ae96 /src/glm/glm.c
parent261e3f991221fbad6bbf262f5e65b773e4b6c73e (diff)
parent25ed7eb9f84e9a822f698ad803901fbb2a5354cf (diff)
:wMerge branch 'gl-window' into main
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");
+}