aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/scene/icamera.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/icamera.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/icamera.cpp')
-rw-r--r--src/client/lua_api/scene/icamera.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/client/lua_api/scene/icamera.cpp b/src/client/lua_api/scene/icamera.cpp
index 0554ce1..482bf31 100644
--- a/src/client/lua_api/scene/icamera.cpp
+++ b/src/client/lua_api/scene/icamera.cpp
@@ -22,29 +22,6 @@ using namespace core;
extern IrrlichtDevice* device;
-//static LISceneNode* checkiscenecamera(lua_State* L, int index){
- //void* ud = luaL_checkudata(L,index,"scene.iscenecamera");
- //luaL_argcheck(L,ud != NULL, index, "'scene.iscenecamera' expected");
- //return (LISceneNode*) ud;
-//}
-
-/*
-static LISceneNode* checkiscenecamera(lua_State* L){
- return checkiscenecamera(L,1);
-}
-*/
-
-//static LISceneNode* checkismayacamera(lua_State* L, int index){
- //void* ud = luaL_checkudata(L,index,"scene.iscenemayacamera");
- //luaL_argcheck(L,ud != NULL, index, "'scene.iscenemayacamera' expected");
- //return (LISceneNode*) ud;
-//}
-/*
-static LISceneNode* checkismayacamera(lua_State* L){
- return checkismayacamera(L,1);
-}
-*/
-
static int newiscenemayacamera(lua_State* L){
printf("createing maya camera!\n");
ISceneManager* smgr = device->getSceneManager();
@@ -53,23 +30,11 @@ static int newiscenemayacamera(lua_State* L){
lua_newtable(L);//{}
lua_pushlightuserdata(L,cam);
lua_setfield(L,-2,"node");
- //LISceneNode* lcam = (LISceneNode*)lua_newuserdata(L, sizeof(LISceneNode));
- //int tref = luaL_ref(L,LUA_REGISTRYINDEX);
//Set it's metatable
luaL_getmetatable(L, "scene.iscenemayacamera");
lua_setmetatable(L, -2);
- //Create the struct
- //lcam->n = cam;
- //lcam->funcmap = hashmap_new();
- //lcam->type = "iscenemayacamera";
-
- //Free up anything made in this function
- //free(label);
-
- //Put it on top and return it
- //lua_rawgeti(L,LUA_REGISTRYINDEX,tref);
return 1;
}