blob: d47f153e0a23295149f6dde17433cb970d9573e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|