add RemoveChild and RemoveAllChildren bindings.
This commit is contained in:
+5
-7
@@ -548,14 +548,14 @@ public:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// xxx: these might not be good ideas... -aj
|
//TODO: fill out this stub
|
||||||
/*
|
/*
|
||||||
static int AddChild( T* p, lua_State *L )
|
static int AddChild( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
// this one is tricky, we need to get an Actor from Lua.
|
// this one is tricky, we need to get an Actor from Lua.
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
static int RemoveChild( T* p, lua_State *L )
|
static int RemoveChild( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
Actor *pChild = p->GetChild( SArg(1) );
|
Actor *pChild = p->GetChild( SArg(1) );
|
||||||
@@ -566,7 +566,6 @@ public:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
static int RemoveAllChildren( T* p, lua_State *L ) { p->RemoveAllChildren( ); return 0; }
|
static int RemoveAllChildren( T* p, lua_State *L ) { p->RemoveAllChildren( ); return 0; }
|
||||||
*/
|
|
||||||
|
|
||||||
LunaActorFrame()
|
LunaActorFrame()
|
||||||
{
|
{
|
||||||
@@ -592,12 +591,11 @@ public:
|
|||||||
ADD_METHOD( SetDiffuseLightColor );
|
ADD_METHOD( SetDiffuseLightColor );
|
||||||
ADD_METHOD( SetSpecularLightColor );
|
ADD_METHOD( SetSpecularLightColor );
|
||||||
ADD_METHOD( SetLightDirection );
|
ADD_METHOD( SetLightDirection );
|
||||||
// not good ideas
|
//AddChild is not yet implemented
|
||||||
/*
|
//ADD_METHOD( AddChild );
|
||||||
ADD_METHOD( AddChild );
|
|
||||||
ADD_METHOD( RemoveChild );
|
ADD_METHOD( RemoveChild );
|
||||||
ADD_METHOD( RemoveAllChildren );
|
ADD_METHOD( RemoveAllChildren );
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user