@@ -25757,6 +25757,103 @@ int lua_ax_base_Director_getPowerPreference(lua_State* tolua_S)
2575725757
2575825758 return 0;
2575925759}
25760+ int lua_ax_base_Director_setDebugLayerEnabled(lua_State* tolua_S)
25761+ {
25762+ int argc = 0;
25763+ ax::Director* cobj = nullptr;
25764+ bool ok = true;
25765+
25766+ #if _AX_DEBUG >= 1
25767+ tolua_Error tolua_err;
25768+ #endif
25769+
25770+
25771+ #if _AX_DEBUG >= 1
25772+ if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror;
25773+ #endif
25774+
25775+ cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0);
25776+
25777+ #if _AX_DEBUG >= 1
25778+ if (!cobj)
25779+ {
25780+ tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_setDebugLayerEnabled'", nullptr);
25781+ return 0;
25782+ }
25783+ #endif
25784+
25785+ argc = lua_gettop(tolua_S)-1;
25786+ if (argc == 1)
25787+ {
25788+ bool arg0;
25789+
25790+ ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Director:setDebugLayerEnabled");
25791+ if(!ok)
25792+ {
25793+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_setDebugLayerEnabled'", nullptr);
25794+ return 0;
25795+ }
25796+ cobj->setDebugLayerEnabled(arg0);
25797+ lua_settop(tolua_S, 1);
25798+ return 1;
25799+ }
25800+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:setDebugLayerEnabled",argc, 1);
25801+ return 0;
25802+
25803+ #if _AX_DEBUG >= 1
25804+ tolua_lerror:
25805+ tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_setDebugLayerEnabled'.",&tolua_err);
25806+ #endif
25807+
25808+ return 0;
25809+ }
25810+ int lua_ax_base_Director_isDebugLayerEnabled(lua_State* tolua_S)
25811+ {
25812+ int argc = 0;
25813+ ax::Director* cobj = nullptr;
25814+ bool ok = true;
25815+
25816+ #if _AX_DEBUG >= 1
25817+ tolua_Error tolua_err;
25818+ #endif
25819+
25820+
25821+ #if _AX_DEBUG >= 1
25822+ if (!tolua_isusertype(tolua_S,1,"ax.Director",0,&tolua_err)) goto tolua_lerror;
25823+ #endif
25824+
25825+ cobj = (ax::Director*)tolua_tousertype(tolua_S,1,0);
25826+
25827+ #if _AX_DEBUG >= 1
25828+ if (!cobj)
25829+ {
25830+ tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Director_isDebugLayerEnabled'", nullptr);
25831+ return 0;
25832+ }
25833+ #endif
25834+
25835+ argc = lua_gettop(tolua_S)-1;
25836+ if (argc == 0)
25837+ {
25838+ if(!ok)
25839+ {
25840+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Director_isDebugLayerEnabled'", nullptr);
25841+ return 0;
25842+ }
25843+ auto&& ret = cobj->isDebugLayerEnabled();
25844+ tolua_pushboolean(tolua_S,(bool)ret);
25845+ return 1;
25846+ }
25847+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Director:isDebugLayerEnabled",argc, 0);
25848+ return 0;
25849+
25850+ #if _AX_DEBUG >= 1
25851+ tolua_lerror:
25852+ tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Director_isDebugLayerEnabled'.",&tolua_err);
25853+ #endif
25854+
25855+ return 0;
25856+ }
2576025857int lua_ax_base_Director_getTextureCache(lua_State* tolua_S)
2576125858{
2576225859 int argc = 0;
@@ -28649,6 +28746,8 @@ int lua_register_ax_base_Director(lua_State* tolua_S)
2864928746 tolua_function(tolua_S,"setRenderView",lua_ax_base_Director_setRenderView);
2865028747 tolua_function(tolua_S,"setPowerPreference",lua_ax_base_Director_setPowerPreference);
2865128748 tolua_function(tolua_S,"getPowerPreference",lua_ax_base_Director_getPowerPreference);
28749+ tolua_function(tolua_S,"setDebugLayerEnabled",lua_ax_base_Director_setDebugLayerEnabled);
28750+ tolua_function(tolua_S,"isDebugLayerEnabled",lua_ax_base_Director_isDebugLayerEnabled);
2865228751 tolua_function(tolua_S,"getTextureCache",lua_ax_base_Director_getTextureCache);
2865328752 tolua_function(tolua_S,"isNextDeltaTimeZero",lua_ax_base_Director_isNextDeltaTimeZero);
2865428753 tolua_function(tolua_S,"setNextDeltaTimeZero",lua_ax_base_Director_setNextDeltaTimeZero);
0 commit comments