blob: cbd8d45667671ee881b4636583cdec5cad6919f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <lua.h>
#include <honeysuckle.h>
#include <assimp/scene.h>
#include "import.h"
void push_vector(lua_State *L, struct aiVector3D vec)
{
hs_create_table(L,
hs_str_num("x", vec.x),
hs_str_num("y", vec.y),
hs_str_num("z", vec.z),
);
}
void push_aistring(lua_State *L, struct aiString str)
{
lua_pushstring(L, str.data);
}
|