From ae4e17fc743ca0344af818ab767db7311ea7829c Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 23 Aug 2022 13:28:01 -0500 Subject: add basic transforms --- src/glm/glm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/glm/glm.c (limited to 'src/glm/glm.c') 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 +#include + + +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"); +} -- cgit v1.2.1