aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_cphys.hpp
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2018-11-01 13:53:16 -0400
committerAlexander Pickering <alex@cogarr.net>2018-11-01 13:53:16 -0400
commit112517494847f0c86f58544cbf4c35c9b7712ab1 (patch)
tree115d9ae3da8028e67e498ed8c587d14972b7699b /src/client/lua_api/load_cphys.hpp
parent77b26fba6e78ac4af2b28b3bbb4646dea5682ed1 (diff)
downloadbrokengine-112517494847f0c86f58544cbf4c35c9b7712ab1.tar.gz
brokengine-112517494847f0c86f58544cbf4c35c9b7712ab1.tar.bz2
brokengine-112517494847f0c86f58544cbf4c35c9b7712ab1.zip
Refactored code and added library
Physics code for models now lives in the shared directory. To get file loading without irrlicht, a single-file header library (lib/tinyobjloader-c) was added. Metatables for generics and physics generics have also been seperated out.
Diffstat (limited to 'src/client/lua_api/load_cphys.hpp')
-rw-r--r--src/client/lua_api/load_cphys.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/lua_api/load_cphys.hpp b/src/client/lua_api/load_cphys.hpp
new file mode 100644
index 0000000..7ee07fe
--- /dev/null
+++ b/src/client/lua_api/load_cphys.hpp
@@ -0,0 +1,14 @@
+#ifndef __H_loadphys
+#define __H_loadphys
+#include <stdio.h>
+#include <stdlib.h>
+#include <vector>
+extern "C" {
+ #include <lua.h>
+ #include <lauxlib.h>
+ #include <lualib.h>
+}
+#include <irrlicht.h>
+
+void load_physfuncs(lua_State* L);
+#endif