From d44185c7bfa792b5766a10f8cd736d83c67ebcb4 Mon Sep 17 00:00:00 2001 From: Cocos Robot <48829427+cocos-robot@users.noreply.github.com> Date: Fri, 15 Jul 2022 14:23:41 +0800 Subject: [PATCH] [ci skip][AUTO]: Automated code generating update: 83b514d20bce61e75b556e0c5b28531c4978388a (#12011) (#12014) Co-authored-by: cocos-robot --- native/cocos/bindings/auto/jsb_2d_auto.cpp | 42 +++++++++---------- native/cocos/bindings/auto/jsb_2d_auto.h | 2 +- native/cocos/bindings/auto/jsb_scene_auto.cpp | 22 ++++++++++ native/cocos/bindings/auto/jsb_scene_auto.h | 1 + 4 files changed, 45 insertions(+), 22 deletions(-) diff --git a/native/cocos/bindings/auto/jsb_2d_auto.cpp b/native/cocos/bindings/auto/jsb_2d_auto.cpp index a173c55411..fa73a23a00 100644 --- a/native/cocos/bindings/auto/jsb_2d_auto.cpp +++ b/native/cocos/bindings/auto/jsb_2d_auto.cpp @@ -1897,26 +1897,6 @@ bool js_register_2d_RenderEntity(se::Object* obj) // NOLINT(readability-identifi se::Object* __jsb_cc_Batcher2d_proto = nullptr; // NOLINT se::Class* __jsb_cc_Batcher2d_class = nullptr; // NOLINT -static bool js_2d_Batcher2d_addRootNode(se::State& s) // NOLINT(readability-identifier-naming) -{ - auto* cobj = SE_THIS_OBJECT(s); - // SE_PRECONDITION2(cobj, false, "Invalid Native Object"); - if (nullptr == cobj) return true; - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; - if (argc == 1) { - HolderType arg0 = {}; - ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - SE_PRECONDITION2(ok, false, "Error processing arguments"); - cobj->addRootNode(arg0.value()); - return true; - } - SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); - return false; -} -SE_BIND_FUNC(js_2d_Batcher2d_addRootNode) - static bool js_2d_Batcher2d_handleColor(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -2041,6 +2021,26 @@ static bool js_2d_Batcher2d_syncMeshBuffersToNative(se::State& s) // NOLINT(read } SE_BIND_FUNC(js_2d_Batcher2d_syncMeshBuffersToNative) +static bool js_2d_Batcher2d_syncRootNodesToNative(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + // SE_PRECONDITION2(cobj, false, "Invalid Native Object"); + if (nullptr == cobj) return true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 1) { + HolderType, true> arg0 = {}; + ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); + SE_PRECONDITION2(ok, false, "Error processing arguments"); + cobj->syncRootNodesToNative(std::move(arg0.value())); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1); + return false; +} +SE_BIND_FUNC(js_2d_Batcher2d_syncRootNodesToNative) + static bool js_2d_Batcher2d_update(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -2115,13 +2115,13 @@ bool js_register_2d_Batcher2d(se::Object* obj) // NOLINT(readability-identifier- #if CC_DEBUG cls->defineStaticProperty("isJSBClass", _SE(js_2d_getter_return_true), nullptr); #endif - cls->defineFunction("addRootNode", _SE(js_2d_Batcher2d_addRootNode)); cls->defineFunction("handleColor", _SE(js_2d_Batcher2d_handleColor)); cls->defineFunction("handlePostRender", _SE(js_2d_Batcher2d_handlePostRender)); cls->defineFunction("initialize", _SE(js_2d_Batcher2d_initialize)); cls->defineFunction("releaseDescriptorSetCache", _SE(js_2d_Batcher2d_releaseDescriptorSetCache)); cls->defineFunction("reset", _SE(js_2d_Batcher2d_reset)); cls->defineFunction("syncMeshBuffersToNative", _SE(js_2d_Batcher2d_syncMeshBuffersToNative)); + cls->defineFunction("syncRootNodesToNative", _SE(js_2d_Batcher2d_syncRootNodesToNative)); cls->defineFunction("update", _SE(js_2d_Batcher2d_update)); cls->defineFunction("uploadBuffers", _SE(js_2d_Batcher2d_uploadBuffers)); cls->defineFinalizeFunction(_SE(js_cc_Batcher2d_finalize)); diff --git a/native/cocos/bindings/auto/jsb_2d_auto.h b/native/cocos/bindings/auto/jsb_2d_auto.h index ee6bb93c90..24f0f35620 100644 --- a/native/cocos/bindings/auto/jsb_2d_auto.h +++ b/native/cocos/bindings/auto/jsb_2d_auto.h @@ -69,13 +69,13 @@ extern se::Class * __jsb_cc_Batcher2d_class; // NOLINT bool js_register_cc_Batcher2d(se::Object *obj); // NOLINT -SE_DECLARE_FUNC(js_2d_Batcher2d_addRootNode); SE_DECLARE_FUNC(js_2d_Batcher2d_handleColor); SE_DECLARE_FUNC(js_2d_Batcher2d_handlePostRender); SE_DECLARE_FUNC(js_2d_Batcher2d_initialize); SE_DECLARE_FUNC(js_2d_Batcher2d_releaseDescriptorSetCache); SE_DECLARE_FUNC(js_2d_Batcher2d_reset); SE_DECLARE_FUNC(js_2d_Batcher2d_syncMeshBuffersToNative); +SE_DECLARE_FUNC(js_2d_Batcher2d_syncRootNodesToNative); SE_DECLARE_FUNC(js_2d_Batcher2d_update); SE_DECLARE_FUNC(js_2d_Batcher2d_uploadBuffers); SE_DECLARE_FUNC(js_2d_Batcher2d_Batcher2d); diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index be553e8760..74d495b904 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -33,6 +33,7 @@ #include "cocos/bindings/auto/jsb_render_auto.h" #include "cocos/bindings/auto/jsb_pipeline_auto.h" #include "cocos/bindings/auto/jsb_cocos_auto.h" +#include "cocos/bindings/auto/jsb_2d_auto.h" #ifndef JSB_ALLOC #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) @@ -10168,6 +10169,26 @@ static bool js_scene_Root_frameMove(se::State& s) // NOLINT(readability-identifi } SE_BIND_FUNC(js_scene_Root_frameMove) +static bool js_scene_Root_getBatcher2D(se::State& s) // NOLINT(readability-identifier-naming) +{ + auto* cobj = SE_THIS_OBJECT(s); + // SE_PRECONDITION2(cobj, false, "Invalid Native Object"); + if (nullptr == cobj) return true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; + if (argc == 0) { + cc::Batcher2d* result = cobj->getBatcher2D(); + ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); + SE_PRECONDITION2(ok, false, "Error processing arguments"); + SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); + return true; + } + SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0); + return false; +} +SE_BIND_FUNC(js_scene_Root_getBatcher2D) + static bool js_scene_Root_getCumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); @@ -10784,6 +10805,7 @@ bool js_register_scene_Root(se::Object* obj) // NOLINT(readability-identifier-na cls->defineFunction("destroyWindow", _SE(js_scene_Root_destroyWindow)); cls->defineFunction("destroyWindows", _SE(js_scene_Root_destroyWindows)); cls->defineFunction("frameMove", _SE(js_scene_Root_frameMove)); + cls->defineFunction("getBatcher2D", _SE(js_scene_Root_getBatcher2D)); cls->defineFunction("getDebugViewConfig", _SE(js_scene_Root_getDebugViewConfig)); cls->defineFunction("getEventProcessor", _SE(js_scene_Root_getEventProcessor)); cls->defineFunction("_initialize", _SE(js_scene_Root_initialize)); diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index d562ace894..7214dfdf8a 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -411,6 +411,7 @@ SE_DECLARE_FUNC(js_scene_Root_destroyScenes); SE_DECLARE_FUNC(js_scene_Root_destroyWindow); SE_DECLARE_FUNC(js_scene_Root_destroyWindows); SE_DECLARE_FUNC(js_scene_Root_frameMove); +SE_DECLARE_FUNC(js_scene_Root_getBatcher2D); SE_DECLARE_FUNC(js_scene_Root_getDebugViewConfig); SE_DECLARE_FUNC(js_scene_Root_getEventProcessor); SE_DECLARE_FUNC(js_scene_Root_initialize);