aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/scene/imesh.cpp
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/scene/imesh.cpp
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/scene/imesh.cpp')
-rw-r--r--src/client/lua_api/scene/imesh.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/client/lua_api/scene/imesh.cpp b/src/client/lua_api/scene/imesh.cpp
index b5c8939..f3b5bc8 100644
--- a/src/client/lua_api/scene/imesh.cpp
+++ b/src/client/lua_api/scene/imesh.cpp
@@ -23,18 +23,6 @@ using namespace video;
extern IrrlichtDevice* device;
-//static LISceneNode* checkismesh(lua_State* L, int index){
- //void* ud = luaL_checkudata(L,index,"scene.imesh");
- //luaL_argcheck(L,ud != NULL, index, "'scene.imesh' expected");
- //return (LISceneNode*) ud;
-//}
-
-/*
-static LISceneNode* checkismesh(lua_State* L){
- return checkismesh(L,1);
-}
-*/
-
//{} :: scene.newmesh("/path/to/model")
static int newiscenemesh(lua_State* L){//"path/to"
@@ -90,21 +78,6 @@ int newiscenecube(lua_State* L){//{v3 size}, {v3 origin}
return 1;
}
-// self:setMaterial("path/to/material")
-//int iscenesetmaterial(lua_State* L){//self,"path/to"
- //ISceneNode* node = (IMeshSceneNode*)lua_touserdata(L,-2);
- //const char* s = lua_tostring(L,-1);
- ////ISceneNode* i = toiscenenode(L,1)->n;
- ////const char* s = luaL_optstring(L,2,"error.png");
- ////printf("Setting material to %s",s);
-
- //IVideoDriver* driver = device->getVideoDriver();
- //node->setMaterialTexture(0, driver->getTexture(s));
-
- //lua_pop(L,2);
- //return 0;
-//}
-
static const luaL_reg imesh_m[] = {
{"setMaterial", iscenesetmaterial},
{"getpos", iscenegetpos},