mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
[ci skip][AUTO]: Automated code generating update: 83b514d20bce61e75b556e0c5b28531c4978388a (#12011) (#12014)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
This commit is contained in:
@@ -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<cc::Batcher2d>(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<cc::Node*, false> 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<cc::Batcher2d>(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<cc::Batcher2d>(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<std::vector<cc::Node *>, 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<cc::Batcher2d>(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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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<cc::Root>(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<cc::Root>(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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user