aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/load_scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/lua_api/load_scene.cpp')
-rw-r--r--src/client/lua_api/load_scene.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/client/lua_api/load_scene.cpp b/src/client/lua_api/load_scene.cpp
index 285cba0..6d02a2d 100644
--- a/src/client/lua_api/load_scene.cpp
+++ b/src/client/lua_api/load_scene.cpp
@@ -11,7 +11,7 @@ extern "C" {
#include "scene/icamera.hpp"
#include "scene/imesh.hpp"
#include "scene/ilight.hpp"
-#include "phys/bphysbox.hpp"
+#include "phys/cbphysbox.hpp"
#include "phys/bphysmodel.hpp"
using namespace irr;
@@ -19,13 +19,16 @@ using namespace irr;
extern IrrlichtDevice* device;
void load_scenefuncs(lua_State* L){
+ lua_newtable(L);//{}
+ lua_setglobal(L,"scene");//
icamera_register(L,device);
+
imesh_register(L,device);
ilight_register(L,device);
- bphysbox_register(L,device);
+ lua_newtable(L);
+ lua_setglobal(L,"phys");
+ cbphysbox_register(L);
bphysmodel_register(L,device);
- lua_pop(L, 1);
+ //lua_pop(L, 1);
- lua_newtable(L);
- lua_setglobal(L,"scene");
}