Commit Graph

129 Commits

Author SHA1 Message Date
pandamicro baafb1f4d3 Revert "V3.5.1 no window (#11016)" (#11071)
This reverts commit bd1c1e0088.
2022-05-14 10:20:44 +08:00
yangchao bd1c1e0088 V3.5.1 no window (#11016) 2022-05-12 09:43:46 +08:00
timlyeee f0925edd69 listen WINDOW_RESIZE event by application (#10930) 2022-05-10 17:23:16 +08:00
bofeng-song 9ac28d2fc0 fix wrong alpha get (#10768) 2022-04-14 17:42:16 +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 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
Cocos Robot f078686229 [ci skip][AUTO]: Automated clang-format update: 65cf4e5ef0f8b518442e457f69bf41e4fa994bed (#10393) (#10408)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 11:22:30 +08:00
qiuguohua 94f42b3c4b Add dynamic library export macro (#10393)
* Add dynamic library export macro
2022-03-21 11:17:11 +08:00
qiuguohua 6a16077bc5 SDL related interface encapsulation (#10385)
* SDL related interface encapsulation
2022-03-18 14:43:01 +08:00
qiuguohua 45d95dd285 Add destroy window event and recreate window event on windows platform (#10365) 2022-03-17 09:36:04 +08:00
Cocos Robot cd6b22312a [ci skip][AUTO]: Automated clang-format update: 28eb614cf3ba9a0eae9404d84073010e82279726 (#10344) (#10358)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-16 16:35:01 +08:00
qiuguohua 1a90cd9013 Windows platform handles multiple events at once (#10344)
* The windows platform handles multiple events at once
2022-03-16 10:33:37 +08:00
bofeng-song 141128f148 refine context2d, reduce call from native to js (#10211)
* reduce c++ callback to js
2022-03-02 09:56:00 +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
qiuguohua 6d79a24cab V3.5.0 (#4134)
* Temporarily solve the application is released, but other modules need to use application

* Solve the application is released, but other modules need to use application

* Solve some warnings about platform adaptation

* Fix the problem that the linux platform is not assigned
2022-01-07 09:47:13 +08:00
oahcy 5379e6ef35 引擎适配linux平台 (#4035) 2021-11-29 17:17:15 +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
minggo ea980f509c merge v3.3.2 2021-09-24 12:38:10 +08:00
江战 5074a5a826 V3.4.0 usec++14 (#3898)
This reverts commit fff4cc8fc94fb9b1a8424a2b89e9966184c6c4ce.
2021-09-18 13:53:58 +08:00
江战 1bac46bb23 Use c++14 by default (#3880) 2021-09-13 10:41:27 +08:00
Yun Hsiao Wu d4441705e6 unify gfx resize event (#3875) 2021-09-09 16:00:21 +08:00
PP 76d8703165 ban mouse start event outside the windows (#3744) 2021-07-19 22:31:39 +08:00
minggo 785b29bc0d upgrade unzip (#3679) 2021-07-02 13:57:37 +08:00
minggo 2ebe3260b4 fix clang tidy 2021-06-24 09:34:19 +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
PP 2b39e5f58a fix the invalid keyCode on Windows platform (#3585)
* fix F1-F12 keyboard event on Windows platform

* fix keys MENU, INSERT, SCROLL_LOCK, PAUSE, PRINT on windows platform
2021-06-01 13:41:48 +08:00
mmyduckx 76d15cafa4 send close event to JS (#3527) 2021-05-21 11:37:13 +08:00
mmyduckx 5ef2ab11bf Fix more warings (#3396) 2021-04-15 09:40: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
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 defdc8d5b0 Merge branch 'v3.1' of https://github.com/cocos-creator/engine-native into device-proof 2021-02-07 10:33:25 +08:00
Yun Hsiao Wu e0fdfef054 license upgrader 2021-02-05 14:08:22 +08:00
ChiaNing c4d91c54e4 fix underline bug on win32 (#3243) 2021-01-21 16:09:59 +08:00
minggo 826babfa64 Format code (#3217) 2021-01-13 14:49:32 +08:00
江战 518b56df5d [3.0] [jsb] some improvements (#3146) 2020-12-28 18:50:31 +08:00
PP 8e561c9cfc remove Device::Rotation (#3140) 2020-12-25 17:27:15 +08:00
cary 17a85c1e26 Fix label display error on win32 when srcBlend is One. (#3094)
* Fix label display error on win32 when srcBlend is One.
2020-12-03 15:47:31 +08:00
minggo 8a1a318893 fix iOS resolution issue (#3066) 2020-11-24 19:03:32 +08:00
PP d03a29fc9c support window event on native desktop platform (#3058)
* support window event on Mac

* support window event on Win32
2020-11-24 09:59:58 +08:00
cary 835b0bbb07 Fix the text baseline on native platform. (#3043) 2020-11-19 13:47:12 +08:00
minggo 74e8fb9084 cache properties of CanvasRenderingContext2D (#3007)
* cache properties of CanvasRenderingContext2D

* update data after setting callback

* do not set width/height if the value is not changed
2020-11-11 09:48:21 +08:00
吴智明 18c9dd40b0 fix bug when copy resource (#2970) 2020-11-02 16:31:01 +08:00
江战 cfb5204a1d [bugfix] win32 drawtext prefix / v2.4 #2528 (#2854) 2020-09-28 15:19:12 +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 6a17148d40 use .cpp/.h for source file suffix (#2654) 2020-07-22 15:00:28 +08:00
minggo 581aca5da0 Refactor fileutils (#2649) 2020-07-17 15:45:15 +08:00