Commit Graph

157 Commits

Author SHA1 Message Date
mmyduckx 9c0e425adb fix ios accelerometer not work (#11142)
* fix-ios-accelerometer not work

* remove all CC_TARGET_OS_TVOS related codes
2022-05-19 09:24:30 +08:00
qiuguohua e20e4b889e V3.5.0 Distribute touch events independently (#10712)
* Distribute touch events independently

* remove  touch event cast

* Fix the error of clang-tidy

Co-authored-by: qiuguohua <862332094@qq.com>
2022-04-10 22:10:15 +08:00
qiuguohua 893643d278 V3.5.0 appdelegate (#10509)
1. Modify the parameters of the creation window
2. Modify the relationship between platform and interface
3. Rename vibrate to vibrator in linux and QNX

* Move appdelegate into template

* Optimize the main function of IOS

* Move view.mm into template

* Modify file copyright information

* Modify the addition location of view.mm

* Engine remove dependency SDKWrapper
2022-03-26 19:35:47 +08:00
qiuguohua b6af1ada02 V3.5.0 create window (#10481)
* 1. Modify the parameters of the creation window
2. Modify the relationship between platform and interface
3. Rename vibrate to vibrator in linux and QNX

* Fix empty platform implementation

* Fix empty platform implementation

* Modify mac and ios createwindow interface

* Create a centered window by default

* Mobile platforms do not require window creation
2022-03-25 18:43:17 +08:00
timlyeee c91db1f369 Fix ios device display effect (#10184)
* Fix ios device display effect
2022-03-02 10:27:51 +08:00
minggo f08555248f fix conflict 2022-01-24 17:23:03 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00
oahcy 5379e6ef35 引擎适配linux平台 (#4035) 2021-11-29 17:17:15 +08:00
qiuguohua 30993747a5 Remove all_flag in IOS (#4014) 2021-10-28 10:00:05 +08:00
qiuguohua eeb9d5c689 Merge the code of v3.3.1 platform adaptation layer into the development branch (#3958)
* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system

* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system

* 1、Fix github compile windows error

* 1、Fix github compile windows error

* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation

* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation

* Solve mac and ios compilation failure

* Fix the problem of compilation of Windows-side simulator

* 1. Adapt the simulator to a new adaptation layer;
2. Fix the compilation warning of ios, and the implicit conversion failed;
3. Fix the mac compilation error, due to the problem of adding the link identification -all_load;

* 1.Add the isDisplayStats and setDisplayStats method to the screen interface

* Fix clang-tidy compilation warning

* Fix clang-tidy compilation warning

* Repair the emulator, compatible with mac and win

* 1、Repair detailed errors, including name modification and calling method modification
2、Delete redundant files in the template directory
3、Change the vibrate interface to vibrator
4、Fix word spelling errors

* Rename interfaces to modules

* Replace CC_ASSERT with CCASSERT

* Replace CC_ASSERT with CCASSERT

Co-authored-by: qiuguohua <>
2021-10-27 10:51:02 +08:00
江战 5074a5a826 V3.4.0 usec++14 (#3898)
This reverts commit fff4cc8fc94fb9b1a8424a2b89e9966184c6c4ce.
2021-09-18 13:53:58 +08:00
江战 9675c4fbd0 V3.3.1 fix api 30 crash (#3867) 2021-09-07 09:47:56 +08:00
Zeqiang Li 219ec21abf remove nativeSize() interface (#3590) 2021-06-09 09:54:55 +08:00
Yun Hsiao Wu 448ea846d8 create device in JS (#3598) 2021-06-07 11:10:06 +08:00
mmyduckx 76d15cafa4 send close event to JS (#3527) 2021-05-21 11:37:13 +08:00
Zeqiang Li c63fbb746e fix iphone7p pixel ratio (#3452)
* fix iphone7p pixel ratio

* using physic pixel ratio
2021-04-23 09:50:49 +08:00
Zeqiang Li 0c7063adab fix ios native size (#3435) 2021-04-20 16:57:14 +08:00
minggo 919b10ec72 fix crash (#3385)
* fix crash

- native width/height should plus device ratio
- should make sure auto release pool manager will not be empty

* pass by value instead
detail information please check clang tidy config: modernize-pass-by-value
2021-04-08 10:18:36 +08:00
minggo 768e71e1aa fix crash on macOS (#3370)
* fix crash on macOS

* fix coding style
2021-04-01 09:47:37 +08:00
minggo 8a301c5cc7 remove Array.cpp/.h and uthash.h (#3350) 2021-03-29 10:34:29 +08:00
Yun Hsiao Wu 9593a54b76 gfx: lifecyle validations (#3341)
* gfx: lifecyle validations

* better noexcept workaround

* more validations

* device layer reflection

* fix release build
2021-03-26 16:30:09 +08:00
mmyduckx dfdd66732a treat warning as error (#3349) 2021-03-26 16:12:24 +08:00
Yun Hsiao Wu a42be36e36 gfx: validator (#3337)
* gfx: validator

* replace c-style casts

regexes used:
(?<!>)\(\(([\w\s\*]+?)\)([\w\[\]\->.:]+)\)
\[\(\w+\)(Feature::\w+)\]
2021-03-22 16:15:31 +08:00
Yun Hsiao Wu 8034bd59d8 [chore] gfx layer adjustments (#3323)
* [chore] move common routines to gfx base

* [chore] remove device pointer inside every gfx resources

* [chore] file structure

* gfx: empty backend

* [chore] device creator abstraction
2021-03-19 16:24:43 +08:00
Yun Hsiao Wu e0fdfef054 license upgrader 2021-02-05 14:08:22 +08:00
pandamicro ec5401aed9 Merge remote-tracking branch 'origin/v3.1' into device-proof
# Conflicts:
#	CMakeLists.txt
#	cocos/cocos2d.h
#	cocos/platform/ios/Application-ios.mm
#	cocos/platform/ios/View.h
#	cocos/platform/mac/Application-mac.mm
#	cocos/renderer/core/gfx/GFXDevice.h
#	cocos/renderer/gfx-metal/MTLCommandBuffer.h
#	cocos/renderer/gfx-metal/MTLCommandBuffer.mm
#	cocos/renderer/gfx-metal/MTLContext.mm
#	cocos/renderer/gfx-metal/MTLDevice.h
#	cocos/renderer/gfx-metal/MTLDevice.mm
#	cocos/renderer/gfx-metal/MTLFence.h
#	cocos/renderer/gfx-metal/MTLFence.mm
#	cocos/renderer/gfx-metal/MTLQueue.h
#	cocos/renderer/gfx-metal/MTLQueue.mm
#	cocos/renderer/gfx-metal/MTLUtils.mm
#	cocos/renderer/gfx-vulkan/VKGPUObjects.h
#	templates/template-link/common/CMakeLists.txt
#	tools/tojs/metal.ini
2021-01-28 19:50:53 +08:00
minggo d745fd5911 Remove files (#3230) 2021-01-18 18:37:18 +08:00
minggo 826babfa64 Format code (#3217) 2021-01-13 14:49:32 +08:00
pandamicro 9eb411fa20 Use NSView/UIView instead of MTKView 2021-01-11 17:12:44 +08:00
PP 8e561c9cfc remove Device::Rotation (#3140) 2020-12-25 17:27:15 +08:00
Knox edc85f1f4c add getSafeArea for android and iOS (#3067) 2020-11-25 16:58:46 +08:00
minggo 8a1a318893 fix iOS resolution issue (#3066) 2020-11-24 19:03:32 +08:00
minggo 68360aefc9 iOS metal (#2932) 2020-10-30 16:15:47 +08:00
minggo 491948f31e fix crash on iOS when backing from backgroud (#2829) 2020-09-24 13:50:25 +08:00
minggo 9d9c79012b change file path (#2733) 2020-09-10 09:51:24 +08:00
minggo b08407c501 remove CC/cc prefix for file names (#2728) 2020-08-28 15:23:29 +08:00
minggo 8851495456 Native renderer (#2662)
Refactor RenderPipeline/RenderStage/RenderFlow
2020-07-31 16:52:25 +08:00
minggo 38e82e57ab remove unneedded codes (#2642)
* remove unneedded codes

* fix compiling error
2020-07-10 16:47:04 +08:00
coulsonwang 71e31cc236 Remove command package (#2620)
* remote metal command package

* apply the clang format

* remove std usage
2020-06-29 16:39:34 +08:00
minggo d381a16142 change namespace from cocos2d to cc (#2572) 2020-06-16 14:34:46 +08:00
minggo ac08833b56 remove CCPlatformDefine.h (#2565) 2020-06-15 16:00:27 +08:00
江战 4c2b647bba remove CCPlatformConfig.h / 3d-gfx (#2555) 2020-06-12 11:17:37 +08:00
minggo da1c03d8d9 implement fps limitation (#2333) 2020-03-26 18:04:32 +08:00
minggo 9be1356d67 System adapter (#2318)
* move View to engine on mac

* move View to engine on iOS

* add CC prefix for file names

* handle input events in engine on Android
2020-03-23 16:22:54 +08:00
coulsonwang 5e1a0fb4cb fix ios compile issue (#2293) 2020-03-18 16:43:25 +08:00
coulsonwang bef04c6fc3 fix device pixel ratio (#2269)
* set device pixel ratio

* fix

* fix devicePixelRatio

* update review

* fix dpr

* remove unneeded code

* remove unneeed code

* fix

* remove getScrenScale
2020-03-17 11:29:48 +08:00
minggo fa511447e3 Android issue (#2247)
* change window handler to uintptr_t

* fix compiling error
2020-03-09 11:21:07 +08:00
minggo 91901a7b83 binding codes support intptr_t (#2204) 2020-02-27 16:04:01 +08:00
minggo fb9c122827 Remove unneeded code (#2193)
* rmove unneeded codes

* fix compiling error

* remove unneeded file

* remove CCStdc related files
2020-02-26 16:11:32 +08:00
minggo 2584fb3807 Remove gl dependence (#2192)
* remove CCConfiguration

* remove gl related header files
2020-02-26 15:51:29 +08:00