diff options
author | sanine <sanine.not@pm.me> | 2023-02-23 00:04:50 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-02-23 00:04:50 -0600 |
commit | 7f7c3cea4e0bc564009089b1520303c29164d308 (patch) | |
tree | 9ca0c050611e4732e86ce75e0888671b30d9ff93 /src | |
parent | 26af60e0e9dfc4ecdf6b1c6f9a2dc5818f4ad8d7 (diff) |
fix bug with byte alignment and update fancy demo to use refactored glm bindings
Diffstat (limited to 'src')
-rw-r--r-- | src/glm/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 |