summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-11-29 23:15:14 -0600
committersanine-a <sanine.not@pm.me>2020-11-29 23:15:14 -0600
commit352dc513efa7cb100acb03d0a991010234e04f12 (patch)
treef41d8c3508d2c6ec2af188033e9b896b0fd8a3e8 /src
parent306e6cca8e49638779b111d66852877416971a59 (diff)
add translate function to mat4 prototype
Diffstat (limited to 'src')
-rw-r--r--src/glm_bindings.c3
1 files changed, 2 insertions, 1 deletions
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,