Skip to content

Commit 61ff9ed

Browse files
CocosRobotminggo
authored andcommitted
[ci skip][AUTO]: updating luabinding & cocos_file.json automatically (#20378)
1 parent b35a20c commit 61ff9ed

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

cocos/scripting/lua-bindings/auto/lua_cocos2dx_backend_auto.cpp

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -556,56 +556,6 @@ int lua_cocos2dx_backend_Program_getUniformBufferSize(lua_State* tolua_S)
556556

557557
return 0;
558558
}
559-
int lua_cocos2dx_backend_Program_setProgramType(lua_State* tolua_S)
560-
{
561-
int argc = 0;
562-
cocos2d::backend::Program* cobj = nullptr;
563-
bool ok = true;
564-
565-
#if COCOS2D_DEBUG >= 1
566-
tolua_Error tolua_err;
567-
#endif
568-
569-
570-
#if COCOS2D_DEBUG >= 1
571-
if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror;
572-
#endif
573-
574-
cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0);
575-
576-
#if COCOS2D_DEBUG >= 1
577-
if (!cobj)
578-
{
579-
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_backend_Program_setProgramType'", nullptr);
580-
return 0;
581-
}
582-
#endif
583-
584-
argc = lua_gettop(tolua_S)-1;
585-
if (argc == 1)
586-
{
587-
cocos2d::backend::ProgramType arg0;
588-
589-
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Program:setProgramType");
590-
if(!ok)
591-
{
592-
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Program_setProgramType'", nullptr);
593-
return 0;
594-
}
595-
cobj->setProgramType(arg0);
596-
lua_settop(tolua_S, 1);
597-
return 1;
598-
}
599-
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.Program:setProgramType",argc, 1);
600-
return 0;
601-
602-
#if COCOS2D_DEBUG >= 1
603-
tolua_lerror:
604-
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_backend_Program_setProgramType'.",&tolua_err);
605-
#endif
606-
607-
return 0;
608-
}
609559
int lua_cocos2dx_backend_Program_getUniformLocation(lua_State* tolua_S)
610560
{
611561
int argc = 0;
@@ -909,7 +859,6 @@ int lua_register_cocos2dx_backend_Program(lua_State* tolua_S)
909859
tolua_function(tolua_S,"getMaxFragmentLocation",lua_cocos2dx_backend_Program_getMaxFragmentLocation);
910860
tolua_function(tolua_S,"getFragmentShader",lua_cocos2dx_backend_Program_getFragmentShader);
911861
tolua_function(tolua_S,"getUniformBufferSize",lua_cocos2dx_backend_Program_getUniformBufferSize);
912-
tolua_function(tolua_S,"setProgramType",lua_cocos2dx_backend_Program_setProgramType);
913862
tolua_function(tolua_S,"getUniformLocation",lua_cocos2dx_backend_Program_getUniformLocation);
914863
tolua_function(tolua_S,"getProgramType",lua_cocos2dx_backend_Program_getProgramType);
915864
tolua_function(tolua_S,"getActiveAttributes",lua_cocos2dx_backend_Program_getActiveAttributes);

cocos/scripting/lua-bindings/auto/lua_cocos2dx_backend_auto.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ int register_all_cocos2dx_backend(lua_State* tolua_S);
5656

5757

5858

59-
6059

6160

6261
#endif // __cocos2dx_backend_h__

0 commit comments

Comments
 (0)