[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-06-18 06:10:38 +00:00
parent a68d89bce3
commit 155638f2de
4 changed files with 0 additions and 140 deletions

View File

@ -54,19 +54,4 @@
-- @param #int int
-- @return bool#bool ret (return value: bool)
--------------------------------
-- overload function: create(array_table, int, array_table, int, array_table, int)
--
-- overload function: create(array_table, array_table, array_table, array_table)
--
-- @function [parent=#Mesh] create
-- @param self
-- @param #array_table array
-- @param #int int
-- @param #array_table vector<short, std::allocator<short> >
-- @param #int int
-- @param #array_table array
-- @param #int int
-- @return Mesh#Mesh ret (retunr value: cc.Mesh)
return nil

View File

@ -3,11 +3,6 @@
-- @module Sprite3D
-- @extend Node,BlendProtocol
--------------------------------
-- @function [parent=#Sprite3D] getSkin
-- @param self
-- @return MeshSkin#MeshSkin ret (return value: cc.MeshSkin)
--------------------------------
-- overload function: setTexture(cc.Texture2D)
--

View File

@ -61456,50 +61456,6 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S)
return 1;
}
int lua_cocos2dx_Sprite3D_getSkin(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Sprite3D* cobj = nullptr;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"cc.Sprite3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Sprite3D*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite3D_getSkin'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::MeshSkin* ret = cobj->getSkin();
object_to_luaval<cocos2d::MeshSkin>(tolua_S, "cc.MeshSkin",(cocos2d::MeshSkin*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "getSkin",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite3D_getSkin'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Sprite3D_setTexture(lua_State* tolua_S)
{
int argc = 0;
@ -61750,7 +61706,6 @@ int lua_register_cocos2dx_Sprite3D(lua_State* tolua_S)
tolua_cclass(tolua_S,"Sprite3D","cc.Sprite3D","cc.Node",nullptr);
tolua_beginmodule(tolua_S,"Sprite3D");
tolua_function(tolua_S,"getSkin",lua_cocos2dx_Sprite3D_getSkin);
tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite3D_setTexture);
tolua_function(tolua_S,"getMesh",lua_cocos2dx_Sprite3D_getMesh);
tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_Sprite3D_getBlendFunc);
@ -62208,78 +62163,6 @@ int lua_cocos2dx_Mesh_hasVertexAttrib(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Mesh_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if COCOS2D_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if COCOS2D_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S)-1;
do
{
if (argc == 6)
{
std::vector<float, std::allocator<float> > arg0;
ok &= luaval_to_std_vector_float(tolua_S, 2, &arg0);
if (!ok) { break; }
int arg1;
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1);
if (!ok) { break; }
std::vector<unsigned short, std::allocator<unsigned short> > arg2;
ok &= luaval_to_std_vector_ushort(tolua_S, 4, &arg2);
if (!ok) { break; }
int arg3;
ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3);
if (!ok) { break; }
std::vector<cocos2d::MeshVertexAttrib, std::allocator<cocos2d::MeshVertexAttrib> > arg4;
ok &= luaval_to_object<std::vector<cocos2d::MeshVertexAttrib, std::allocator<cocos2d::MeshVertexAttrib> >>(tolua_S, 6, "std::vector<cc.MeshVertexAttrib, std::allocator<cc.MeshVertexAttrib> >",&arg4);
if (!ok) { break; }
int arg5;
ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5);
if (!ok) { break; }
cocos2d::Mesh* ret = cocos2d::Mesh::create(arg0, arg1, arg2, arg3, arg4, arg5);
object_to_luaval<cocos2d::Mesh>(tolua_S, "cc.Mesh",(cocos2d::Mesh*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 4)
{
std::vector<float, std::allocator<float> > arg0;
ok &= luaval_to_std_vector_float(tolua_S, 2, &arg0);
if (!ok) { break; }
std::vector<float, std::allocator<float> > arg1;
ok &= luaval_to_std_vector_float(tolua_S, 3, &arg1);
if (!ok) { break; }
std::vector<float, std::allocator<float> > arg2;
ok &= luaval_to_std_vector_float(tolua_S, 4, &arg2);
if (!ok) { break; }
std::vector<unsigned short, std::allocator<unsigned short> > arg3;
ok &= luaval_to_std_vector_ushort(tolua_S, 5, &arg3);
if (!ok) { break; }
cocos2d::Mesh* ret = cocos2d::Mesh::create(arg0, arg1, arg2, arg3);
object_to_luaval<cocos2d::Mesh>(tolua_S, "cc.Mesh",(cocos2d::Mesh*)ret);
return 1;
}
} while (0);
ok = true;
CCLOG("%s has wrong number of arguments: %d, was expecting %d", "create",argc, 4);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_create'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_Mesh_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Mesh)");
@ -62302,7 +62185,6 @@ int lua_register_cocos2dx_Mesh(lua_State* tolua_S)
tolua_function(tolua_S,"getMeshVertexAttribute",lua_cocos2dx_Mesh_getMeshVertexAttribute);
tolua_function(tolua_S,"getIndexBuffer",lua_cocos2dx_Mesh_getIndexBuffer);
tolua_function(tolua_S,"hasVertexAttrib",lua_cocos2dx_Mesh_hasVertexAttrib);
tolua_function(tolua_S,"create", lua_cocos2dx_Mesh_create);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::Mesh).name();
g_luaType[typeName] = "cc.Mesh";

View File

@ -1546,8 +1546,6 @@ int register_all_cocos2dx(lua_State* tolua_S);