diff options
Diffstat (limited to 'src/glm_bindings.h')
-rw-r--r-- | src/glm_bindings.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/glm_bindings.h b/src/glm_bindings.h new file mode 100644 index 0000000..d47f153 --- /dev/null +++ b/src/glm_bindings.h @@ -0,0 +1,33 @@ +#ifndef HONEY_GLM_BINDINGS_H +#define HONEY_GLM_BINDINGS_H + +/** @file glm_bindings.h + * @brief Lua bindings for GLM functions. + */ + +#include "common.h" + +extern int honey_glm_vec3_mt_ref; +extern int honey_glm_vec4_mt_ref; +extern int honey_glm_mat3_mt_ref; +extern int honey_glm_mat4_mt_ref; + +typedef enum { VEC3, + VEC4, + MAT3, + MAT4 +} honey_glm_array_type; + +typedef struct { + honey_glm_array_type type; + unsigned int size; + float* data; +} honey_glm_array; + +/** @brief Push the honey glm binding functions to the lua stack. + * + * @returns Nothing. + */ +void honey_setup_glm(lua_State* L); + +#endif |