aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/phys
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2018-06-30 21:20:51 -0600
committerAlexander Pickering <alex@cogarr.net>2018-06-30 21:20:51 -0600
commit06203d8767e7da55deb4947c7660ff0136a31f29 (patch)
tree91bc57f8b6372d5d585e3bd83b366421d8da8855 /src/client/lua_api/phys
parente2568651c4dc1e42f123b6e8e8c7597ed50fd355 (diff)
downloadbrokengine-06203d8767e7da55deb4947c7660ff0136a31f29.tar.gz
brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.tar.bz2
brokengine-06203d8767e7da55deb4947c7660ff0136a31f29.zip
Removed some dead code
Removed a lot of commented out old code
Diffstat (limited to 'src/client/lua_api/phys')
-rw-r--r--src/client/lua_api/phys/bphysbuffer.cpp6
-rw-r--r--src/client/lua_api/phys/bphysmodel.cpp22
-rw-r--r--src/client/lua_api/phys/cbphysbox.cpp13
3 files changed, 0 insertions, 41 deletions
diff --git a/src/client/lua_api/phys/bphysbuffer.cpp b/src/client/lua_api/phys/bphysbuffer.cpp
index a8f7302..f1f20c0 100644
--- a/src/client/lua_api/phys/bphysbuffer.cpp
+++ b/src/client/lua_api/phys/bphysbuffer.cpp
@@ -34,12 +34,6 @@ static LBPhysNode* checkisbphysmodel(lua_State* L, int index){
return (LBPhysNode*) ud;
}
-/*
-static LISceneNode* checkismesh(lua_State* L){
- return checkismesh(L,1);
-}
-*/
-
//iscenecamera.new(Vector position, Vector lookat, parrent)
// {} {} 0 1
static int newbphysmodel(lua_State* L){
diff --git a/src/client/lua_api/phys/bphysmodel.cpp b/src/client/lua_api/phys/bphysmodel.cpp
index 95458b1..fdd5584 100644
--- a/src/client/lua_api/phys/bphysmodel.cpp
+++ b/src/client/lua_api/phys/bphysmodel.cpp
@@ -34,12 +34,6 @@ static LBPhysNode* checkisbphysmodel(lua_State* L, int index){
return (LBPhysNode*) ud;
}
-/*
-static LISceneNode* checkismesh(lua_State* L){
- return checkismesh(L,1);
-}
-*/
-
//iscenecamera.new(Vector position, Vector lookat, parrent)
// {} {} 0 1
static int newbphysmodel(lua_State* L){
@@ -261,23 +255,8 @@ static int bphysgetpos(lua_State *L){
return 1;
}
-/*mesh:setmaterial("string",layernum=0)*/
-/*
-static int setmaterial(lua_State* L){
- LISceneNode* n = checkismesh(L,1);
- u32 layernum = luaL_optint(L,3,0);
- const char* matfile = luaL_optstring(L,2,"error.png");
- printf("Setting material on a %s",n->type);
- IVideoDriver* driver = device->getVideoDriver();
- n->n->setMaterialTexture( 0, driver->getTexture(matfile) );
- return 0;
-}
-*/
-
static const luaL_reg bphysmodel_f[] = {
{"new", newbphysmodel},
-// {"gethandeler", guigethandeler},
-// {"sethandeler", guisethandeler},
{0,0},
};
@@ -285,7 +264,6 @@ static const luaL_reg bphysmodel_m[] = {
{"setmaterial", iscenesetmaterial},
{"getpos", bphysgetpos},
{"setpos", bphyssetpos},
-// {"settext", setiguitext},
// {"remove", removeiguielement},
{0, 0},
};
diff --git a/src/client/lua_api/phys/cbphysbox.cpp b/src/client/lua_api/phys/cbphysbox.cpp
index 0baf45a..94d199f 100644
--- a/src/client/lua_api/phys/cbphysbox.cpp
+++ b/src/client/lua_api/phys/cbphysbox.cpp
@@ -26,19 +26,6 @@ extern IrrlichtDevice* device;
extern btDiscreteDynamicsWorld* World;
extern std::list<btRigidBody*> Objects;
-/*
-static LBPhysNode* checkisbphysbox(lua_State* L, int index){
- void* ud = luaL_checkudata(L,index,"phys.physbox");
- luaL_argcheck(L,ud != NULL, index, "'phys.physbox' expected");
- return (LBPhysNode*) ud;
-}
-*/
-
-/*
-static LISceneNode* checkismesh(lua_State* L){
- return checkismesh(L,1);
-}
-*/
//phys.newphysbox({vector3 size},{vector3 origin},mass)
static int newcbphysbox(lua_State* L){//