[AUTO]: updating luabinding automatically

This commit is contained in:
CocosRobot 2014-08-05 02:05:02 +00:00
parent cc75a8e860
commit 8dd1be5172
7 changed files with 568 additions and 182 deletions

View File

@ -0,0 +1,25 @@
--------------------------------
-- @module AttachNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- @function [parent=#AttachNode] create
-- @param self
-- @param #cc.Bone3D bone3d
-- @return AttachNode#AttachNode ret (return value: cc.AttachNode)
--------------------------------
-- @function [parent=#AttachNode] getWorldToNodeTransform
-- @param self
-- @return mat4_table#mat4_table ret (return value: mat4_table)
--------------------------------
-- @function [parent=#AttachNode] visit
-- @param self
-- @param #cc.Renderer renderer
-- @param #mat4_table mat4
-- @param #unsigned int int
return nil

View File

@ -14,40 +14,25 @@
-- @return long#long ret (return value: long)
--------------------------------
-- @function [parent=#Mesh] getIndexFormat
-- @function [parent=#Mesh] getSubMesh
-- @param self
-- @return int#int ret (return value: int)
-- @param #int int
-- @return SubMesh#SubMesh ret (return value: cc.SubMesh)
--------------------------------
-- @function [parent=#Mesh] getVertexSizeInBytes
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#Mesh] getPrimitiveType
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#Mesh] getIndexCount
-- @param self
-- @return long#long ret (return value: long)
--------------------------------
-- @function [parent=#Mesh] getVertexBuffer
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- @function [parent=#Mesh] getMeshVertexAttribute
-- @function [parent=#Mesh] getSubMeshCount
-- @param self
-- @param #int int
-- @return MeshVertexAttrib#MeshVertexAttrib ret (return value: cc.MeshVertexAttrib)
--------------------------------
-- @function [parent=#Mesh] getIndexBuffer
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
-- @return long#long ret (return value: long)
--------------------------------
-- @function [parent=#Mesh] hasVertexAttrib
@ -55,4 +40,10 @@
-- @param #int int
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#Mesh] getMeshVertexAttribute
-- @param self
-- @param #int int
-- @return MeshVertexAttrib#MeshVertexAttrib ret (return value: cc.MeshVertexAttrib)
return nil

View File

@ -11,6 +11,15 @@
-- @param self
-- @param #string str
--------------------------------
-- @function [parent=#Sprite3D] removeAllAttachNode
-- @param self
--------------------------------
-- @function [parent=#Sprite3D] setBlendFunc
-- @param self
-- @param #cc.BlendFunc blendfunc
--------------------------------
-- @function [parent=#Sprite3D] getMesh
-- @param self
@ -22,9 +31,15 @@
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
--------------------------------
-- @function [parent=#Sprite3D] setBlendFunc
-- @function [parent=#Sprite3D] removeAttachNode
-- @param self
-- @param #cc.BlendFunc blendfunc
-- @param #string str
--------------------------------
-- @function [parent=#Sprite3D] getAttachNode
-- @param self
-- @param #string str
-- @return AttachNode#AttachNode ret (return value: cc.AttachNode)
--------------------------------
-- @overload self, string, string

View File

@ -0,0 +1,27 @@
--------------------------------
-- @module SubMeshState
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @function [parent=#SubMeshState] setTexture
-- @param self
-- @param #cc.Texture2D texture2d
--------------------------------
-- @function [parent=#SubMeshState] getTexture
-- @param self
-- @return Texture2D#Texture2D ret (return value: cc.Texture2D)
--------------------------------
-- @function [parent=#SubMeshState] isVisible
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#SubMeshState] setVisible
-- @param self
-- @param #bool bool
return nil

View File

@ -1221,6 +1221,16 @@
-- @field [parent=#cc] Animate3D#Animate3D Animate3D preloaded module
--------------------------------------------------------
-- the cc SubMeshState
-- @field [parent=#cc] SubMeshState#SubMeshState SubMeshState preloaded module
--------------------------------------------------------
-- the cc AttachNode
-- @field [parent=#cc] AttachNode#AttachNode AttachNode preloaded module
--------------------------------------------------------
-- the cc SimpleAudioEngine
-- @field [parent=#cc] SimpleAudioEngine#SimpleAudioEngine SimpleAudioEngine preloaded module

View File

@ -62703,6 +62703,95 @@ int lua_cocos2dx_Sprite3D_setTexture(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Sprite3D_removeAllAttachNode(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_removeAllAttachNode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
cobj->removeAllAttachNode();
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:removeAllAttachNode",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite3D_removeAllAttachNode'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Sprite3D_setBlendFunc(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_setBlendFunc'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
cocos2d::BlendFunc arg0;
#pragma warning NO CONVERSION TO NATIVE FOR BlendFunc;
if(!ok)
return 0;
cobj->setBlendFunc(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:setBlendFunc",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite3D_setBlendFunc'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Sprite3D_getMesh(lua_State* tolua_S)
{
int argc = 0;
@ -62791,7 +62880,7 @@ int lua_cocos2dx_Sprite3D_getBlendFunc(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Sprite3D_setBlendFunc(lua_State* tolua_S)
int lua_cocos2dx_Sprite3D_removeAttachNode(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Sprite3D* cobj = nullptr;
@ -62811,7 +62900,7 @@ int lua_cocos2dx_Sprite3D_setBlendFunc(lua_State* tolua_S)
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite3D_setBlendFunc'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite3D_removeAttachNode'", nullptr);
return 0;
}
#endif
@ -62819,20 +62908,67 @@ int lua_cocos2dx_Sprite3D_setBlendFunc(lua_State* tolua_S)
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
cocos2d::BlendFunc arg0;
std::string arg0;
#pragma warning NO CONVERSION TO NATIVE FOR BlendFunc;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite3D:removeAttachNode");
if(!ok)
return 0;
cobj->setBlendFunc(arg0);
cobj->removeAttachNode(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:setBlendFunc",argc, 1);
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:removeAttachNode",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite3D_setBlendFunc'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite3D_removeAttachNode'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Sprite3D_getAttachNode(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_getAttachNode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite3D:getAttachNode");
if(!ok)
return 0;
cocos2d::AttachNode* ret = cobj->getAttachNode(arg0);
object_to_luaval<cocos2d::AttachNode>(tolua_S, "cc.AttachNode",(cocos2d::AttachNode*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite3D:getAttachNode",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite3D_getAttachNode'.",&tolua_err);
#endif
return 0;
@ -62901,9 +63037,12 @@ int lua_register_cocos2dx_Sprite3D(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"Sprite3D");
tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite3D_setTexture);
tolua_function(tolua_S,"removeAllAttachNode",lua_cocos2dx_Sprite3D_removeAllAttachNode);
tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_Sprite3D_setBlendFunc);
tolua_function(tolua_S,"getMesh",lua_cocos2dx_Sprite3D_getMesh);
tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_Sprite3D_getBlendFunc);
tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_Sprite3D_setBlendFunc);
tolua_function(tolua_S,"removeAttachNode",lua_cocos2dx_Sprite3D_removeAttachNode);
tolua_function(tolua_S,"getAttachNode",lua_cocos2dx_Sprite3D_getAttachNode);
tolua_function(tolua_S,"create", lua_cocos2dx_Sprite3D_create);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::Sprite3D).name();
@ -62999,7 +63138,7 @@ int lua_cocos2dx_Mesh_getMeshVertexAttribCount(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Mesh_getIndexFormat(lua_State* tolua_S)
int lua_cocos2dx_Mesh_getSubMesh(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Mesh* cobj = nullptr;
@ -63019,26 +63158,29 @@ int lua_cocos2dx_Mesh_getIndexFormat(lua_State* tolua_S)
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getIndexFormat'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getSubMesh'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Mesh:getSubMesh");
if(!ok)
return 0;
int ret = (int)cobj->getIndexFormat();
tolua_pushnumber(tolua_S,(lua_Number)ret);
cocos2d::SubMesh* ret = cobj->getSubMesh(arg0);
object_to_luaval<cocos2d::SubMesh>(tolua_S, "cc.SubMesh",(cocos2d::SubMesh*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getIndexFormat",argc, 0);
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getSubMesh",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getIndexFormat'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getSubMesh'.",&tolua_err);
#endif
return 0;
@ -63087,94 +63229,6 @@ int lua_cocos2dx_Mesh_getVertexSizeInBytes(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Mesh_getPrimitiveType(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Mesh* 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.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getPrimitiveType'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
int ret = (int)cobj->getPrimitiveType();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getPrimitiveType",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getPrimitiveType'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Mesh_getIndexCount(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Mesh* 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.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getIndexCount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
ssize_t ret = cobj->getIndexCount();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getIndexCount",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getIndexCount'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Mesh_getVertexBuffer(lua_State* tolua_S)
{
int argc = 0;
@ -63219,7 +63273,7 @@ int lua_cocos2dx_Mesh_getVertexBuffer(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Mesh_getMeshVertexAttribute(lua_State* tolua_S)
int lua_cocos2dx_Mesh_getSubMeshCount(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Mesh* cobj = nullptr;
@ -63239,54 +63293,7 @@ int lua_cocos2dx_Mesh_getMeshVertexAttribute(lua_State* tolua_S)
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getMeshVertexAttribute'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Mesh:getMeshVertexAttribute");
if(!ok)
return 0;
const cocos2d::MeshVertexAttrib& ret = cobj->getMeshVertexAttribute(arg0);
mesh_vertex_attrib_to_luaval(tolua_S, ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getMeshVertexAttribute",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getMeshVertexAttribute'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_Mesh_getIndexBuffer(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Mesh* 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.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getIndexBuffer'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getSubMeshCount'", nullptr);
return 0;
}
#endif
@ -63296,16 +63303,16 @@ int lua_cocos2dx_Mesh_getIndexBuffer(lua_State* tolua_S)
{
if(!ok)
return 0;
unsigned int ret = cobj->getIndexBuffer();
ssize_t ret = cobj->getSubMeshCount();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getIndexBuffer",argc, 0);
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getSubMeshCount",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getIndexBuffer'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getSubMeshCount'.",&tolua_err);
#endif
return 0;
@ -63357,6 +63364,53 @@ int lua_cocos2dx_Mesh_hasVertexAttrib(lua_State* tolua_S)
return 0;
}
int lua_cocos2dx_Mesh_getMeshVertexAttribute(lua_State* tolua_S)
{
int argc = 0;
cocos2d::Mesh* 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.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Mesh_getMeshVertexAttribute'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Mesh:getMeshVertexAttribute");
if(!ok)
return 0;
const cocos2d::MeshVertexAttrib& ret = cobj->getMeshVertexAttribute(arg0);
mesh_vertex_attrib_to_luaval(tolua_S, ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getMeshVertexAttribute",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Mesh_getMeshVertexAttribute'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_Mesh_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Mesh)");
@ -63371,14 +63425,12 @@ int lua_register_cocos2dx_Mesh(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"Mesh");
tolua_function(tolua_S,"restore",lua_cocos2dx_Mesh_restore);
tolua_function(tolua_S,"getMeshVertexAttribCount",lua_cocos2dx_Mesh_getMeshVertexAttribCount);
tolua_function(tolua_S,"getIndexFormat",lua_cocos2dx_Mesh_getIndexFormat);
tolua_function(tolua_S,"getSubMesh",lua_cocos2dx_Mesh_getSubMesh);
tolua_function(tolua_S,"getVertexSizeInBytes",lua_cocos2dx_Mesh_getVertexSizeInBytes);
tolua_function(tolua_S,"getPrimitiveType",lua_cocos2dx_Mesh_getPrimitiveType);
tolua_function(tolua_S,"getIndexCount",lua_cocos2dx_Mesh_getIndexCount);
tolua_function(tolua_S,"getVertexBuffer",lua_cocos2dx_Mesh_getVertexBuffer);
tolua_function(tolua_S,"getMeshVertexAttribute",lua_cocos2dx_Mesh_getMeshVertexAttribute);
tolua_function(tolua_S,"getIndexBuffer",lua_cocos2dx_Mesh_getIndexBuffer);
tolua_function(tolua_S,"getSubMeshCount",lua_cocos2dx_Mesh_getSubMeshCount);
tolua_function(tolua_S,"hasVertexAttrib",lua_cocos2dx_Mesh_hasVertexAttrib);
tolua_function(tolua_S,"getMeshVertexAttribute",lua_cocos2dx_Mesh_getMeshVertexAttribute);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::Mesh).name();
g_luaType[typeName] = "cc.Mesh";
@ -63754,6 +63806,262 @@ int lua_register_cocos2dx_Animate3D(lua_State* tolua_S)
return 1;
}
int lua_cocos2dx_SubMeshState_setTexture(lua_State* tolua_S)
{
int argc = 0;
cocos2d::SubMeshState* 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.SubMeshState",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::SubMeshState*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SubMeshState_setTexture'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
cocos2d::Texture2D* arg0;
ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0);
if(!ok)
return 0;
cobj->setTexture(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.SubMeshState:setTexture",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SubMeshState_setTexture'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_SubMeshState_getTexture(lua_State* tolua_S)
{
int argc = 0;
cocos2d::SubMeshState* 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.SubMeshState",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::SubMeshState*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SubMeshState_getTexture'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
cocos2d::Texture2D* ret = cobj->getTexture();
object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.SubMeshState:getTexture",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SubMeshState_getTexture'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_SubMeshState_isVisible(lua_State* tolua_S)
{
int argc = 0;
cocos2d::SubMeshState* 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.SubMeshState",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::SubMeshState*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SubMeshState_isVisible'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
return 0;
bool ret = cobj->isVisible();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.SubMeshState:isVisible",argc, 0);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SubMeshState_isVisible'.",&tolua_err);
#endif
return 0;
}
int lua_cocos2dx_SubMeshState_setVisible(lua_State* tolua_S)
{
int argc = 0;
cocos2d::SubMeshState* 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.SubMeshState",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (cocos2d::SubMeshState*)tolua_tousertype(tolua_S,1,0);
#if COCOS2D_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SubMeshState_setVisible'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SubMeshState:setVisible");
if(!ok)
return 0;
cobj->setVisible(arg0);
return 0;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d \n", "cc.SubMeshState:setVisible",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SubMeshState_setVisible'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_SubMeshState_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (SubMeshState)");
return 0;
}
int lua_register_cocos2dx_SubMeshState(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"cc.SubMeshState");
tolua_cclass(tolua_S,"SubMeshState","cc.SubMeshState","cc.Ref",nullptr);
tolua_beginmodule(tolua_S,"SubMeshState");
tolua_function(tolua_S,"setTexture",lua_cocos2dx_SubMeshState_setTexture);
tolua_function(tolua_S,"getTexture",lua_cocos2dx_SubMeshState_getTexture);
tolua_function(tolua_S,"isVisible",lua_cocos2dx_SubMeshState_isVisible);
tolua_function(tolua_S,"setVisible",lua_cocos2dx_SubMeshState_setVisible);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::SubMeshState).name();
g_luaType[typeName] = "cc.SubMeshState";
g_typeCast["SubMeshState"] = "cc.SubMeshState";
return 1;
}
int lua_cocos2dx_AttachNode_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.AttachNode",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
cocos2d::Bone3D* arg0;
ok &= luaval_to_object<cocos2d::Bone3D>(tolua_S, 2, "cc.Bone3D",&arg0);
if(!ok)
return 0;
cocos2d::AttachNode* ret = cocos2d::AttachNode::create(arg0);
object_to_luaval<cocos2d::AttachNode>(tolua_S, "cc.AttachNode",(cocos2d::AttachNode*)ret);
return 1;
}
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AttachNode:create",argc, 1);
return 0;
#if COCOS2D_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AttachNode_create'.",&tolua_err);
#endif
return 0;
}
static int lua_cocos2dx_AttachNode_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (AttachNode)");
return 0;
}
int lua_register_cocos2dx_AttachNode(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"cc.AttachNode");
tolua_cclass(tolua_S,"AttachNode","cc.AttachNode","cc.Node",nullptr);
tolua_beginmodule(tolua_S,"AttachNode");
tolua_function(tolua_S,"create", lua_cocos2dx_AttachNode_create);
tolua_endmodule(tolua_S);
std::string typeName = typeid(cocos2d::AttachNode).name();
g_luaType[typeName] = "cc.AttachNode";
g_typeCast["AttachNode"] = "cc.AttachNode";
return 1;
}
int lua_cocos2dx_SimpleAudioEngine_preloadBackgroundMusic(lua_State* tolua_S)
{
int argc = 0;
@ -65514,6 +65822,7 @@ TOLUA_API int register_all_cocos2dx(lua_State* tolua_S)
lua_register_cocos2dx_Application(tolua_S);
lua_register_cocos2dx_DelayTime(tolua_S);
lua_register_cocos2dx_LabelAtlas(tolua_S);
lua_register_cocos2dx_AttachNode(tolua_S);
lua_register_cocos2dx_ParticleSnow(tolua_S);
lua_register_cocos2dx_EaseElasticIn(tolua_S);
lua_register_cocos2dx_EaseCircleActionInOut(tolua_S);
@ -65605,6 +65914,7 @@ TOLUA_API int register_all_cocos2dx(lua_State* tolua_S)
lua_register_cocos2dx_GLProgramState(tolua_S);
lua_register_cocos2dx_Animation3D(tolua_S);
lua_register_cocos2dx_PageTurn3D(tolua_S);
lua_register_cocos2dx_SubMeshState(tolua_S);
lua_register_cocos2dx_TransitionSlideInL(tolua_S);
lua_register_cocos2dx_TransitionSlideInT(tolua_S);
lua_register_cocos2dx_Grid3D(tolua_S);

View File

@ -1572,6 +1572,14 @@ int register_all_cocos2dx(lua_State* tolua_S);