diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-06-22 12:38:38 -0600 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-06-22 12:38:38 -0600 |
| commit | 9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3 (patch) | |
| tree | d7956fc8aabef903f354578d69d4d7fdf64ec928 /src/client/lua_api/load_phys.cpp | |
| parent | 06d3e8182d018ca613f177f6ff7a3bbb6494cc79 (diff) | |
| download | brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.tar.gz brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.tar.bz2 brokengine-9fa5dcc9310a8c6ff8c77a47a86303f7b950dcf3.zip | |
Updated core
Updated all core files to prepare for tech demo
Diffstat (limited to 'src/client/lua_api/load_phys.cpp')
| -rw-r--r-- | src/client/lua_api/load_phys.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/client/lua_api/load_phys.cpp b/src/client/lua_api/load_phys.cpp index 846d34c..23bb22a 100644 --- a/src/client/lua_api/load_phys.cpp +++ b/src/client/lua_api/load_phys.cpp @@ -10,13 +10,20 @@ extern "C" { #include <irrlicht.h> #include "../callbackhandeler.hpp" +#include "phys/cbphysbox.hpp" +#include "phys/bphysmodel.hpp" using namespace irr; using namespace gui; using namespace core; -extern IrrlichtDevice* d; +extern IrrlichtDevice* device; void load_physfuncs(lua_State* L){ - printf("Called load physfuncs..."); + lua_newtable(L);//{} + lua_setglobal(L,"phys");// + //phys things + cbphysbox_register(L); + + bphysmodel_register(L,device); } |
