Skip to content

Commit 27aa84d

Browse files
committed
fix: complete Hermes JSI value conversion implementations
- Fix toJsiValue/fromJsiValue to use se::Object::toJsiObject/createFromJsiObject - Add public JSI interop methods to Hermes Object - Fix namespace/constructor issues for Hermes backend
1 parent 5b9a45e commit 27aa84d

78 files changed

Lines changed: 440515 additions & 10 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

native/build_android/generated/cocos/bindings/auto/jsb_2d_auto.cpp

Lines changed: 3618 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
// clang-format off
2+
3+
/* ----------------------------------------------------------------------------
4+
* This file was automatically generated by SWIG (https://www.swig.org).
5+
* Version 4.1.0
6+
*
7+
* Do not make changes to this file unless you know what you are doing - modify
8+
* the SWIG interface file instead.
9+
* ----------------------------------------------------------------------------- */
10+
11+
/****************************************************************************
12+
Copyright (c) 2022-2023 Xiamen Yaji Software Co., Ltd.
13+
14+
http://www.cocos.com
15+
16+
Permission is hereby granted, free of charge, to any person obtaining a copy
17+
of this software and associated documentation files (the "Software"), to deal
18+
in the Software without restriction, including without limitation the rights to
19+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
20+
of the Software, and to permit persons to whom the Software is furnished to do so,
21+
subject to the following conditions:
22+
23+
The above copyright notice and this permission notice shall be included in
24+
all copies or substantial portions of the Software.
25+
26+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32+
THE SOFTWARE.
33+
****************************************************************************/
34+
35+
#pragma once
36+
#include "bindings/jswrapper/SeApi.h"
37+
#include "bindings/manual/jsb_conversions.h"
38+
#include "2d/renderer/RenderDrawInfo.h"
39+
#include "2d/renderer/UIMeshBuffer.h"
40+
#include "2d/renderer/Batcher2d.h"
41+
#include "2d/renderer/RenderEntity.h"
42+
#include "2d/renderer/UIModelProxy.h"
43+
44+
45+
46+
bool register_all_native2d(se::Object* obj);
47+
48+
49+
JSB_REGISTER_OBJECT_TYPE(cc::MeshBufferLayout);
50+
extern se::Object *__jsb_cc_MeshBufferLayout_proto; // NOLINT
51+
extern se::Class * __jsb_cc_MeshBufferLayout_class; // NOLINT
52+
53+
54+
template<>
55+
bool sevalue_to_native(const se::Value &from, cc::MeshBufferLayout * to, se::Object *ctx);
56+
57+
58+
JSB_REGISTER_OBJECT_TYPE(cc::UIMeshBuffer);
59+
extern se::Object *__jsb_cc_UIMeshBuffer_proto; // NOLINT
60+
extern se::Class * __jsb_cc_UIMeshBuffer_class; // NOLINT
61+
62+
63+
JSB_REGISTER_OBJECT_TYPE(cc::Render2dLayout);
64+
extern se::Object *__jsb_cc_Render2dLayout_proto; // NOLINT
65+
extern se::Class * __jsb_cc_Render2dLayout_class; // NOLINT
66+
67+
68+
template<>
69+
bool sevalue_to_native(const se::Value &from, cc::Render2dLayout * to, se::Object *ctx);
70+
71+
72+
JSB_REGISTER_OBJECT_TYPE(cc::LocalDSBF);
73+
extern se::Object *__jsb_cc_LocalDSBF_proto; // NOLINT
74+
extern se::Class * __jsb_cc_LocalDSBF_class; // NOLINT
75+
76+
77+
template<>
78+
bool sevalue_to_native(const se::Value &from, cc::LocalDSBF * to, se::Object *ctx);
79+
80+
81+
JSB_REGISTER_OBJECT_TYPE(cc::RenderDrawInfo);
82+
extern se::Object *__jsb_cc_RenderDrawInfo_proto; // NOLINT
83+
extern se::Class * __jsb_cc_RenderDrawInfo_class; // NOLINT
84+
85+
86+
JSB_REGISTER_OBJECT_TYPE(cc::RenderEntity);
87+
extern se::Object *__jsb_cc_RenderEntity_proto; // NOLINT
88+
extern se::Class * __jsb_cc_RenderEntity_class; // NOLINT
89+
90+
91+
JSB_REGISTER_OBJECT_TYPE(cc::UIModelProxy);
92+
extern se::Object *__jsb_cc_UIModelProxy_proto; // NOLINT
93+
extern se::Class * __jsb_cc_UIModelProxy_class; // NOLINT
94+
95+
96+
JSB_REGISTER_OBJECT_TYPE(cc::RecordedRendererInfo);
97+
extern se::Object *__jsb_cc_RecordedRendererInfo_proto; // NOLINT
98+
extern se::Class * __jsb_cc_RecordedRendererInfo_class; // NOLINT
99+
100+
101+
template<>
102+
bool sevalue_to_native(const se::Value &from, cc::RecordedRendererInfo * to, se::Object *ctx);
103+
104+
105+
JSB_REGISTER_OBJECT_TYPE(cc::Batcher2d);
106+
extern se::Object *__jsb_cc_Batcher2d_proto; // NOLINT
107+
extern se::Class * __jsb_cc_Batcher2d_class; // NOLINT
108+
109+
// clang-format on

0 commit comments

Comments
 (0)