-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
base: cocos2d-x-3.12-oh
Are you sure you want to change the base?
3.12 version OHOS adaptation #20825
Conversation
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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下,暂时没有用到 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
?
No description provided.