From 33e6b9627e6a46d388d46f2c5b4d15ba7e9f9904 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 18 Oct 2017 21:34:55 -0400 Subject: Started refactoring * Finished a basic server * Changed from ZMQ to nanomsg (basically the same though) * Moved some repeated code from the client/server directories into "shared" * Edited makefile to reflect new dependencies --- src/client/lua_api/load_scene.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/client/lua_api/load_scene.cpp (limited to 'src/client/lua_api/load_scene.cpp') diff --git a/src/client/lua_api/load_scene.cpp b/src/client/lua_api/load_scene.cpp new file mode 100644 index 0000000..285cba0 --- /dev/null +++ b/src/client/lua_api/load_scene.cpp @@ -0,0 +1,31 @@ +#include +#include +#include +#include +extern "C" { + #include + #include + #include +} +#include +#include "scene/icamera.hpp" +#include "scene/imesh.hpp" +#include "scene/ilight.hpp" +#include "phys/bphysbox.hpp" +#include "phys/bphysmodel.hpp" + +using namespace irr; + +extern IrrlichtDevice* device; + +void load_scenefuncs(lua_State* L){ + icamera_register(L,device); + imesh_register(L,device); + ilight_register(L,device); + bphysbox_register(L,device); + bphysmodel_register(L,device); + lua_pop(L, 1); + + lua_newtable(L); + lua_setglobal(L,"scene"); +} -- cgit v1.2.3-70-g09d2