summaryrefslogtreecommitdiff
path: root/src/glm/glm.c
diff options
context:
space:
mode:
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");
+}