From 7f7c3cea4e0bc564009089b1520303c29164d308 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 23 Feb 2023 00:04:50 -0600 Subject: fix bug with byte alignment and update fancy demo to use refactored glm bindings --- src/glm/setup.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/glm/setup.c b/src/glm/setup.c index 6b91f0b..332987b 100644 --- a/src/glm/setup.c +++ b/src/glm/setup.c @@ -15,6 +15,14 @@ const char *glm_versor_tname = "glm.versor"; void setup_glm(lua_State *L, int honey_index) { + luaL_newmetatable(L, glm_mat2_tname); lua_pop(L, 1); + luaL_newmetatable(L, glm_mat3_tname); lua_pop(L, 1); + luaL_newmetatable(L, glm_mat4_tname); lua_pop(L, 1); + luaL_newmetatable(L, glm_vec2_tname); lua_pop(L, 1); + luaL_newmetatable(L, glm_vec3_tname); lua_pop(L, 1); + luaL_newmetatable(L, glm_vec4_tname); lua_pop(L, 1); + luaL_newmetatable(L, glm_versor_tname); lua_pop(L, 1); + struct honey_tbl_t glm[] = { #define X(name, func) H_FUNC(name, func), GLM_FUNCTIONS -- cgit v1.2.1