bind Draw

This commit is contained in:
Glenn Maynard
2007-02-13 23:59:59 +00:00
parent 5e36201c4c
commit a5a907af0e
+9
View File
@@ -1394,6 +1394,13 @@ public:
pParent->PushSelf(L);
return 1;
}
static int Draw( T* p, lua_State *L )
{
LUA->YieldLua();
p->Draw();
LUA->UnyieldLua();
return 0;
}
LunaActor()
{
@@ -1527,6 +1534,8 @@ public:
ADD_METHOD( GetName );
ADD_METHOD( GetParent );
ADD_METHOD( Draw );
}
};