#include #include #include #include extern "C" { #include #include #include } #include #include "scene/icamera.hpp" #include "scene/imesh.hpp" #include "scene/ilight.hpp" #include "phys/cbphysbox.hpp" #include "phys/bphysmodel.hpp" using namespace irr; extern IrrlichtDevice* device; void load_scenefuncs(lua_State* L){ lua_newtable(L);//{} lua_setglobal(L,"scene");// //scene things icamera_register(L); imesh_register(L); ilight_register(L); lua_newtable(L);//{} lua_setglobal(L,"phys");// //phys things cbphysbox_register(L); bphysmodel_register(L,device); //lua_pop(L, 1); }