Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.12 version OHOS adaptation #20825

Open
wants to merge 4 commits into
base: cocos2d-x-3.12-oh
Choose a base branch
from

Conversation

wanghui187
Copy link
Contributor

No description provided.

Signed-off-by: @wanghui187 <348582973@qq.com>
Signed-off-by: @wanghui187 <348582973@qq.com>
Signed-off-by: @wanghui187 <348582973@qq.com>
Signed-off-by: @wanghui187 <348582973@qq.com>
@@ -362,8 +362,11 @@ GLProgramState::GLProgramState()
, _vertexAttribsFlags(0)
, _glprogram(nullptr)
, _nodeBinding(nullptr)
#if (CC_TARGET_PLATFORM == CC_PLATFORM_OHOS)
, _backToForegroundlistener(nullptr)
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only initialize on OHOS?

@@ -54,10 +54,13 @@ MeshCommand::MeshCommand()
, _vao(0)
, _material(nullptr)
, _stateBlock(nullptr)
#if (CC_TARGET_PLATFORM == CC_PLATFORM_OHOS)
, _rendererRecreatedListener(nullptr)
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only initialize on OHOS?


if(OHOS)
target_link_libraries(luacocos2d ext_luajit)
# luajit比lua多一个头文件luajit.h,在../../../external/lua/luajit/src下,暂时没有用到
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use Chinese. Please check all files.

@@ -58,6 +58,8 @@ elseif target == cc.PLATFORM_OS_WINRT then
device.platform = "winrt"
elseif target == cc.PLATFORM_OS_WP8 then
device.platform = "wp8"
elseif target == cc.PLATFORM_OS_OHOS then
device.platform = "harmony"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change to HarmonyOS Next?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants