@@ -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- }
609559int 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);
0 commit comments