summaryrefslogtreecommitdiff
path: root/src/import/import.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-09-16 00:55:53 -0500
committersanine <sanine.not@pm.me>2022-09-16 00:55:53 -0500
commitd444d1c98fdefea6cf0aff50eb9b58d4dbcea6ed (patch)
treead4f0fea5d8f0d0b581978d50debccb63b3e6b38 /src/import/import.c
parentf2eb020c4199134e07632f3c6690d68381837b85 (diff)
begin assimp bindings
Diffstat (limited to 'src/import/import.c')
-rw-r--r--src/import/import.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/import/import.c b/src/import/import.c
new file mode 100644
index 0000000..cc22616
--- /dev/null
+++ b/src/import/import.c
@@ -0,0 +1,14 @@
+#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),
+ );
+}