summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glm/setup.c8
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