Commit Graph

48 Commits

Author SHA1 Message Date
minggo cd48cf7106 Replace CCASSERT with CC_ASSERT (#10682)
* replace CCASSERT with CC_ASSEERT
2022-04-10 16:03:46 +08:00
minggo ef013fc8c3 Remove ssize_t (#10664) 2022-04-07 17:17:18 +08:00
James Chen 4cf2a9c594 Add support for TextEncoder & TextDecoder. (#10665)
* Add support for TextEncoder & TextDecoder.
2022-04-07 10:46:18 +08:00
minggo b61e4b62dd fix some warnings (#10554) 2022-03-29 11:29:08 +08:00
minggo e58dccebbd remove CoreStd.h (#10541)
* remove CoreStd.h
2022-03-28 18:35:01 +08:00
Cocos Robot 997cd1044c [ci skip][AUTO]: Automated clang-format update: 3f0460bee6caa9fcac9629e2ef18ee4ea08b3656 (#10501) (#10536)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-28 11:53:36 +08:00
minggo ee5636c573 Replace map with unordered_map (#10501)
* replace ccstd::map with ccstd::unordered_map
2022-03-28 11:49:17 +08:00
Cocos Robot a2df4e4dbd [ci skip][AUTO]: Automated clang-format update: 771de57fc2c1edbaaf3ae94e77f9801b0379cc6c (#10469) (#10472)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-24 13:50:39 +08:00
minggo 7f4cb9e3b1 Remove string (#10469)
* replace std::string with ccstd::string
2022-03-24 11:53:10 +08:00
minggo ccc84b06b6 replace std::unordered_map with ccstd::unordered_map (#10459)
* replace std::unordered_map with ccstd::unordered_map
2022-03-23 16:44:06 +08:00
Cocos Robot 568b9b9910 [ci skip][AUTO]: Automated clang-format update: b5915aa03b753a6e67f09d03980608e3cdce2887 (#10442) (#10448)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-22 18:12:49 +08:00
minggo 4ef2fdea21 repalce std::map with ccstd::map (#10442) 2022-03-22 18:05:31 +08:00
Cocos Robot 24d84664f8 [ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 (#10402) (#10424)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 16:04:49 +08:00
minggo 34bf14269c unify stl (#10402)
* add ccstd::vector
* replace cc::vector with ccstd::vector 
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
timlyeee 2769040896 editbox-win32 (#10118)
* editbox-win32
* editbox styles
* bind with jsb_input
2022-03-14 15:52:35 +08:00
Cocos Robot b8396a94f8 [ci skip][AUTO]: Automated clang-format update: 0d261be694e19b254fa16510599850ab8a8a8eab (#10270) (#10334)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-14 15:17:54 +08:00
mmyduckx 92ac6f3019 Unzip binding (#10270)
* add zipUtils manual bindings
2022-03-14 15:10:40 +08:00
timlyeee 8f53542267 fix win64 restart crash (#10233)
* fix win64 restart crash

* supply restart fix from v3.4.2/v3.5(supply a default context)
* temp hack for v8::Arraybuffer(abi conflict).
* remove use of windows dll for x86
2022-03-09 16:07:24 +08:00
James Chen bd54a082a3 Update Spidermonkey (97.0.1) backend for se (jswrapper) (#10170)
* Update spidermonkey backend for se.

* Update cmakelist

* Bug fix for se spidermonkey backend.

* Fix constructor binding for spidermonkey backend.

* Fix wrong syntax of calling native function in simple-texture.jsb.ts & builtin-res-mgr.jsb.ts

* Use jsb.createExternalArrayBuffer for caching since it will not be moved during GGC.

* Cleanup se spidermonkey backend

* Add Object::createExternalArrayBuffer for se v8 backend.

* Remove unused code in jsb_assets_manual.cpp

* Add jsb.createExternalArrayBuffer binding.

* Remove unused WebGLRenderingContext registeration.

* Remove unused code in jsb_global_init.cpp

* Add Root::setDevice.

* Invoke ScriptEngine::mainLoopUpdate in Engine.cpp.

* Update CMakeLists.txt

* Make missing return type as an error.

* Cleanup for sm/ScriptEngine.cpp

* prefine.cmake fix for vs.
2022-02-24 18:20:54 +08:00
minggo 7f24f34b22 Merge branch 'v3.5.0' into v3.6_merge_v3.5.0 2022-01-25 19:52:06 +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
minggo 5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
qiuguohua 2f7eb00403 1、Modify the interface for obtaining the window handle (#278)
2、Debug mode to check if the interface is empty
2021-12-02 18:06:11 +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
timlyeee 85c52544a5 message channel between Native and JS (#3900)
* Invoke Native Function in JS
* Invoke JS function in Native
Co-authored-by: LX <codingboeuf@jizamaoxuewangdeMacBook-Air.local>
2021-09-29 14:16:30 +08:00
mmyduckx 6d44d883c2 add missing JSB_closeWindow (#3781) 2021-07-29 10:43:49 +08:00
江战 fcb82a20d6 Add BigInt to se::Value (#3706) 2021-07-14 09:48:52 +08:00
timlyeee d7f1d3cc87 V3.3.0 x64 adaptation (#3673) 2021-07-01 17:40:20 +08:00
江战 a652715f5a Harmony OS support - dont merge (#3528) 2021-05-21 10:43:22 +08:00
Yun Hsiao Wu acbd39ff55 move minimal jsb init into a separate header (#3314) 2021-03-12 09:56:04 +08:00
Yun Hsiao Wu ea88ba33c6 codebase structure update (#3289)
* structure

* fix jsb auto binding license issue
2021-03-01 12:00:10 +08:00
Yun Hsiao Wu e0fdfef054 license upgrader 2021-02-05 14:08:22 +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
江战 a558b0e89f [3.0] restart VM (#3154) 2020-12-31 15:42:55 +08:00
minggo e9463d9be2 Fix todo (#3097)
* remove close window function

* remove unneeded codes

* fix todo
2020-12-07 11:07:37 +08:00
minggo bda56c8e1e fix memory leak (#3088) 2020-11-30 16:14:50 +08:00
江战 ded9f64739 [3d-gfx] [bugfix] Android downloader JNI argument GC (#3087) 2020-11-30 16:09:43 +08:00
minggo ec2da78abb fix memory leak (#3086)
* fix memory leak
2020-11-30 09:57:22 +08:00
minggo a67fc53392 fix memory usage calculation (#3074)
* fix memory usage calculation
2020-11-25 19:58:31 +08:00
minggo 9c98bc0c92 do not use freed memory (#3042) 2020-11-18 17:51:06 +08:00
minggo 900cf3aa80 just send image data pointer to JS (#3033) 2020-11-17 10:43:57 +08:00
ChiaNing 6ba1c6e477 Compress Texture bug fix & ASTC Support (#2983)
* Compress Texture bug fix & ASTC Support
2020-11-06 16:58:24 +08:00
江战 bb0b9b21af advoid copy in non-main thread (#2296) (#2848) 2020-09-28 13:47:32 +08:00
minggo a7d7cc8b1f fix warnings (#2819) 2020-09-22 14:27:25 +08:00
minggo 9d9c79012b change file path (#2733) 2020-09-10 09:51:24 +08:00