From 352dc513efa7cb100acb03d0a991010234e04f12 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sun, 29 Nov 2020 23:15:14 -0600 Subject: add translate function to mat4 prototype --- src/glm_bindings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/glm_bindings.c b/src/glm_bindings.c index a3ce419..b9652b5 100644 --- a/src/glm_bindings.c +++ b/src/glm_bindings.c @@ -87,7 +87,7 @@ void honey_setup_glm(lua_State* L) honey_lua_create_table (L, 2, - HONEY_TABLE, "__index", 21, + HONEY_TABLE, "__index", 22, HONEY_FUNCTION, "copy", honey_glm_mat4_copy, HONEY_FUNCTION, "eye", honey_glm_mat4_eye, HONEY_FUNCTION, "zero", honey_glm_mat4_zero, @@ -97,6 +97,7 @@ void honey_setup_glm(lua_State* L) HONEY_FUNCTION, "scale", honey_glm_mat4_scale, HONEY_FUNCTION, "det", honey_glm_mat4_det, HONEY_FUNCTION, "inv", honey_glm_mat4_inv, + HONEY_FUNCTION, "translate", honey_glm_translate, HONEY_FUNCTION, "translateX", honey_glm_translate_x, HONEY_FUNCTION, "translateY", honey_glm_translate_y, HONEY_FUNCTION, "translateZ", honey_glm_translate_z, -- cgit v1.2.1