From 8a75194c51a189f9c8f72d9821beb00b7f75d06d Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sun, 29 Nov 2020 21:43:05 -0600 Subject: refactor affine transform bindings --- src/glm_bindings.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) (limited to 'src/glm_bindings.h') diff --git a/src/glm_bindings.h b/src/glm_bindings.h index 45424ee..c9eaa91 100644 --- a/src/glm_bindings.h +++ b/src/glm_bindings.h @@ -120,4 +120,72 @@ int honey_glm_vec4_clamp(lua_State* L); int honey_glm_vec4_lerp(lua_State* L); +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * Mat3 Functions + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +int honey_glm_mat3_copy(lua_State* L); + +int honey_glm_mat3_eye(lua_State* L); + +int honey_glm_mat3_zero(lua_State* L); + +int honey_glm_mat3_mul(lua_State* L); + +int honey_glm_mat3_transpose(lua_State* L); + +int honey_glm_mat3_mulv(lua_State* L); + +int honey_glm_mat3_scale(lua_State* L); + +int honey_glm_mat3_det(lua_State* L); + +int honey_glm_mat3_inv(lua_State* L); + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * Mat4 Functions + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +int honey_glm_mat4_copy(lua_State* L); + +int honey_glm_mat4_eye(lua_State* L); + +int honey_glm_mat4_zero(lua_State* L); + +int honey_glm_mat4_mul(lua_State* L); + +int honey_glm_mat4_transpose(lua_State* L); + +int honey_glm_mat4_mulv(lua_State* L); + +int honey_glm_mat4_scale(lua_State* L); + +int honey_glm_mat4_det(lua_State* L); + +int honey_glm_mat4_inv(lua_State* L); + +int honey_glm_translate(lua_State* L); + +int honey_glm_translate_x(lua_State* L); + +int honey_glm_translate_y(lua_State* L); + +int honey_glm_translate_z(lua_State* L); + +int honey_glm_scalev(lua_State* L); + +int honey_glm_rotate_x(lua_State* L); + +int honey_glm_rotate_y(lua_State* L); + +int honey_glm_rotate_z(lua_State* L); + +int honey_glm_rotate(lua_State* L); + #endif -- cgit v1.2.1