Commit Graph

607 Commits

Author SHA1 Message Date
Deal(一线灵) de7fdee6e4
Enable video player(VideoTexture) based on new MediaEngine for macOS and tvos (#1154)
* Ready for PR macOS

* Update videoTexture.frag

* Fix compile

* Fix h265 for mac [skip ci]

* Fix compile error

* Update readme [skip ci]
2023-04-02 01:51:36 +08:00
Deal(一线灵) b48eb3d29f
Support clang-cl + ninja, refer to #1152 (#1153) 2023-04-01 23:11:58 +08:00
RH 6ad2152333
Ensure that the axmol engine git folder is the one used for versioning (#1149)
* Committing genbindings changes

* Fix compilation error related to redefinition of 'pause'
Fix update override warning
Improve code

* Revert "Fix compilation error related to redefinition of 'pause'"

This reverts commit 1744a48fec.

* Ensure that the engine .git folder is the one being referenced for versioning
2023-03-31 08:04:38 +08:00
halx99 ee2de093a7 Done #1139 2023-03-30 22:08:53 +08:00
halx99 facba25f12 Fix #855 2023-03-29 23:36:54 +08:00
halx99 abf3405066 For clang-format happy 2023-03-28 00:07:33 +08:00
aismann 65875a977e
Clipper2 1.2.2 (#1138) 2023-03-27 21:46:14 +08:00
halx99 a847fdab9a Add FileStream::getNativeHandle() 2023-03-26 22:42:13 +08:00
halx99 9a4d173030 Fix ci 2023-03-25 16:08:48 +08:00
Deal(一线灵) 3d23eea8d0
Media engine video texture (#1133)
* VideoPlayer based on new MediaEngine[Win32/UWP]

* Improve MediaEngine interface

* Update readme

* Improve pixel format

* Improve MediaEngine interface

* Ready for PR UWP/Win32

* Ready for PR UWP,Win32

* Update reademe files

* Update readme files

* Update UIVideoPlayer-android.cpp [skip ci]

* Update UIVideoPlayer-ios.mm

* Update MFUtils.cpp

* Fix ci
2023-03-25 08:37:51 +08:00
Turky Mohammed ff8a16350f
[IMPROVEMENT] Fix tilemap camera move and zoom culling (#1134)
* Fix tilemap culling

* Update CCFastTMXLayer.cpp

* Update CCFastTMXLayer.h
2023-03-25 08:33:39 +08:00
Turky Mohammed ed3bb5eaf8
[BUG] Fix TMX Tiled Map `CSV`, `BASE64`, & `ZLIB` incorrect parsing (#1131)
* Fix TMX Tiled Map `CSV`, `BASE64`, & `ZLIB` incorrect parsing

* Revert "Fix TMX Tiled Map `CSV`, `BASE64`, & `ZLIB` incorrect parsing"

This reverts commit 3088123a20.

* Use `std::regex_replace` instead

* Avoid copying strings

* Update CCTMXXMLParser.cpp
2023-03-25 08:33:13 +08:00
RH 3eae9cf0f6
Fix return reference to local temporary value (#1127)
* Fix invalid return type for temporary variable
2023-03-21 21:22:02 +08:00
Sam 8a4494606a
Improve Android performance (#1125)
* Improve Android performance

* Remove unused memset

* Using the same code as Metal.

* Add a comment
2023-03-21 19:43:37 +08:00
Yehsam23 5c7d6b07e9
Impore Metal Renderer Dirty Detection. (#1120)
Remove setTargetFlags _dirty
2023-03-15 11:09:20 +08:00
halx99 80a5191af2 Remove UWP from PC family 2023-03-14 12:08:31 +08:00
RH 09d86de9e7
Fix for incorrect tile sprite setup on creation (#1114)
* On tile sprite creation, apply required settings based on tile flags
2023-03-13 08:55:26 +08:00
RH 252308dce0
TiledMap sprite position fix (#1112)
* Correctly store flags and gid with sprite created for tile
Use correct coordinates when displaying sprite for a tile

* Fix up typo and long test titles
2023-03-12 16:15:11 +08:00
halx99 7226125e7e Update project url in sources 2023-03-12 01:44:55 +08:00
halx99 da0085276a [UWP] Add API GLViewImpl::createFullScreen
- Fix for luabindings
2023-03-11 23:19:52 +08:00
halx99 418bef4bae Fix ci 2023-03-11 23:14:04 +08:00
halx99 1e66a93868 Improve API GLViewImpl::createWithRect 2023-03-11 22:53:55 +08:00
Deal(一线灵) b46417809d
Windows Store UWP apps support (#1108)
* [BIG FEATURE] Windows Store UWP apps support

* Fix ci, add uwp for pr-ci

* Fix ci

* Improve ci script

* Fix ci

* Fix ci

* Fix ci

* Fix ci

* Upload uwp appx package artifacts [skip ci]

* Use d2d draw system font text

* Fix ci

* Improve code style
2023-03-11 22:10:18 +08:00
halx99 2d8d754cd9 Remove range-v3 which is not compatible UWP c++17 2023-03-10 13:20:45 +08:00
halx99 6e5723b590 Fix compile errors in c++17 2023-03-08 08:34:17 +08:00
Turky Mohammed b68ecc7cd2
[BUG] TileMap flipped/rotated animated tiles incorrect rendering. (#1098)
* Add test cases

* Delete default_hrtf.txt

* Fix rotated/flipped animated tile maps

* Optimize bitwise operations

* improve bitwise operations
2023-03-07 23:26:37 +08:00
RH f29115d011
Add missing renderer source file references to CMakeLists.txt (#1100)
* Add missing file references to CMakeLists.txt
2023-03-07 18:51:58 +08:00
Turky Mohammed 4c2856998a
[BUG] TileMap OpenGL pixel-tolerance fix (#1085)
* Update CCFastTMXLayer.cpp

* [skip ci]

* Implement equation into engine

* Update CCFastTMXLayer.cpp [skip ci]

* [correction] fix sub-pixel equation
2023-03-06 22:41:16 +08:00
halx99 bc0b7da754 Fix dead lock when post new http request on failure callback 2023-03-06 12:13:12 +08:00
halx99 61eedc593f Add more compatible macros 2023-03-04 16:13:21 +08:00
halx99 bd4f11d7ed Add more compatible macro [skip ci] 2023-03-04 15:48:33 +08:00
halx99 d72d21de81 Fix #1082 2023-02-27 15:43:35 +08:00
aismann ee703dc421
removed unused variable: const Vec2 pt (#1079)
const Vec2 pt(so.x / PRECISION, so.y / PRECISION);
2023-02-26 04:29:57 +08:00
halx99 b05f1efb15 Fix #1075 2023-02-25 06:21:23 +08:00
halx99 ba61e83191 Improve UserDefault code style 2023-02-23 21:59:27 +08:00
Deal(一线灵) 1ae9cd33ae
Tidy project tree and full symlink support (#1072)
* Tidy project file tree and all symlink support
2023-02-23 21:57:30 +08:00
RH c628e0f428
Better richtext word wrapping (#1071)
* [RichText] Do not word-wrap on punctuation characters for better readability
2023-02-23 13:55:42 +08:00
aismann 1b4c7b9976
Visible artifacts on DrawNode::drawCircle() with a corresponding lineWidth > 5 (window resizing issue) (#1050)
* Fix DrawNode::drawCircle() behavior itf the window is resizing.

* Update CCDrawNode.cpp

Tested also with
resourceSize(960, 640) or (1280, 720)
designSize(480, 320) or (400, 320);


Making a deal with the "boss"

* Update drawCircle and Tests

_lineWidth/4  is needed => the circle grow to fast without

---------

Co-authored-by: Deal(一线灵) <halx99@live.com>
2023-02-22 20:02:20 +08:00
RH f3930a15f4
Scrollbar visibility fix for when auto hide is disabled (#1067)
* Fix for scrollbar visibility when auto-hide is disabled

* Set the default opacity to 255 when the scrollbar auto hide is disabled since _opacity is unknown
2023-02-22 11:13:56 +08:00
RH 76b8747874
Trim leading space from wrapped lines of text in RichText (#1066)
* Fix issue with a whitespace appearing at the start of left-aligned text in RichText when using wrapping at word boundaries.
Update RichText test.
2023-02-21 13:15:28 +08:00
halx99 a7ae735893 Check astc image header wildcard for some extesion formats [skip ci] 2023-02-18 11:43:44 +08:00
halx99 49284f4cc2 Working on c++23
There are many more efficient features on future c++23 standard
2023-02-18 11:39:31 +08:00
Turky Mohammed 2712f0ee2f
Add Anchored Sprite Class (#1040)
* add anchored sprite class

* Add feature tests
2023-02-10 14:07:20 +08:00
Andreas Loew d96876db07
display error message if shader initialization fails (#1051) 2023-02-09 23:07:36 +08:00
Deal(一线灵) 5b9fa73640
Fix #990 2023-02-09 21:40:38 +08:00
halx99 b746c936a9 Fix ci 2023-01-24 15:49:40 +08:00
halx99 405844b0e0 Fix platform macro pred 2023-01-24 13:58:29 +08:00
halx99 565e36eb21 Fix macro detect 2023-01-24 11:09:16 +08:00
Joilnen f448cf7073
fixing a warning message (#1035) 2023-01-22 14:10:39 +08:00
Deal(一线灵) 542fe86aab
Update CCGLViewImpl-desktop.cpp 2023-01-22 07:39:46 +08:00
halx99 bfc4e0b890 Fix ci 2023-01-21 21:57:28 +08:00
halx99 db1b74466c Fix ci 2023-01-21 20:04:58 +08:00
halx99 704b1655eb Fix osx ci 2023-01-21 19:24:58 +08:00
halx99 21d8495792 Fix ci 2023-01-21 18:49:02 +08:00
halx99 668da36bcf Unify CCGLViewImpl-desktop 2023-01-21 17:57:56 +08:00
halx99 559e958bc3 Fix osx ci 2023-01-21 16:56:04 +08:00
solan-solan 64034df2ad
GL_RGBA32F GL backend support (#1034)
* Added GL_RGBA32F_EXT for GL backend to support floating point textures.

* Committing genbindings changes

* Added fp texture constant to mtl.

Co-authored-by: solan-solan <solan-solan@users.noreply.github.com>
2023-01-19 22:10:41 +08:00
halx99 9f94bd461e Fix #1032 2023-01-17 10:06:09 +08:00
Deal(一线灵) 2b0484a40b
Update CocosGUI.h 2023-01-12 11:55:16 +08:00
halx99 047574d8e6 Update comment [skip ci] 2023-01-12 09:54:47 +08:00
halx99 9eb65309b9 Don't use deprecated function 2023-01-11 23:28:22 +08:00
halx99 d1e9308ede Improve windows optional modules 2023-01-11 22:28:14 +08:00
pietpukkel 6c7d2a26c3
Resize on Windows (#1026)
* Resize on Windows

Fixed resize on Windows

* Better code quality

Co-authored-by: <halx99@live.com>
2023-01-11 22:24:43 +08:00
halx99 d56efd5a57 Make linux defautSearchRoot same with win32 2023-01-10 23:06:04 +08:00
Turky Mohammed 5f9db1203f
[BUG] fix _AX_HAVE_WEBVIEW2 compilation error when not defined. (#1020)
* make _AX_HAVE_WEBVIEW2 actually work

* Exclude other platforms

* Update UIWebView-inl.h
2023-01-08 09:36:43 +08:00
Turky Mohammed 54eb339f5f
Update positionColorLengthTexture.vert (#1021) 2023-01-08 09:36:14 +08:00
一线灵|Deal 8ab4be0123
fix typo 2023-01-07 20:24:49 +08:00
一线灵|Deal 25934b84f2
Fix typo 2023-01-07 19:46:20 +08:00
aismann b1c5f106ca
Improve drawCircle rendering for big rings (#1013)
* Update HelloWorldScene.cpp

replace   _director->end();  with menuCloseCallback(this);

* Rendering drawCircle
2023-01-06 23:25:31 +08:00
halx99 640dda61ec Fix dll linkage 2023-01-06 18:38:16 +08:00
一线灵|Deal 6a19a9bc88
Update HttpCookie.cpp 2023-01-04 21:21:16 -08:00
halx99 23693d9a5f Fix ci 2023-01-05 00:35:55 +08:00
halx99 4c07b00348 Fix ci 2023-01-05 00:31:08 +08:00
halx99 0825311308 Change HttpRequest::getTag return type from const char* to std::string_view 2023-01-04 23:37:57 +08:00
halx99 68b42398a1 Fix ci 2023-01-04 23:21:24 +08:00
halx99 4915b3f2c5 Fix ci 2023-01-04 23:20:31 +08:00
halx99 5bd36bfa7c Update yasio to latest 2023-01-04 23:20:07 +08:00
halx99 2547e8d3f8 Improve code style 2023-01-04 23:06:52 +08:00
halx99 b164698459 Improve posix macro definations 2023-01-04 23:05:52 +08:00
halx99 2c8f7aa84e Preferred use ax::print for engine log output 2023-01-04 22:52:40 +08:00
halx99 8ed52980b4 Merge branch 'dev' of https://github.com/axmolengine/axmol into dev 2023-01-04 21:26:23 +08:00
halx99 427ae694bd Fix http request issue when path empty from url
Ensure path can be use for http request directly
2023-01-04 21:26:01 +08:00
CHP b5cde53994
ANDROID_SDK_ROOT -> ANDROID_HOME (#1009)
* Update setup.py

* ANDROID_SDK_ROOT -> ANDROID_HOME
2023-01-04 08:03:48 +08:00
halx99 28eb9e1886 Take care lambda implicit capture std::string_view
refer to: #1002
2023-01-03 23:02:17 +08:00
halx99 2b07737a91 Fix feature check for MSVC 2023-01-03 18:01:40 +08:00
halx99 7d2166fb31 Fix ci 2023-01-01 23:31:24 +08:00
halx99 7b0866edac Avoid packet GC
yasio-3.39.7 introduce YOPT_S_FORWARD_EVENT.
2023-01-01 23:11:32 +08:00
halx99 e30d3c159c Fix ci 2023-01-01 18:41:48 +08:00
halx99 38cfc6aaa2 Renaming performFunctionInCocosThread to runOnAxmolThread 2023-01-01 18:08:25 +08:00
halx99 59bc12dddf Improve base64 API
Move base64Encode/base64Decode to namespace `ax::utils`
2023-01-01 18:07:18 +08:00
一线灵|Deal 32367c8026
Remove unused 2023-01-01 18:01:01 +08:00
Turky Mohammed eb5ec6047c
[IMPROVEMENT] Remove camera unnecessary perspective option. (#993)
* Fix camera applyZoom when window size changes

* Revert "Fix camera applyZoom when window size changes"

This reverts commit 26154b5ff7.

* Fix pr

* remove camera perspective option

* fix merge conflict

* Update CCCamera.cpp

* Update CCCamera.h
2022-12-29 16:54:26 +08:00
Turky Mohammed d2a3b9a375
[BUG] Fix camera `applyZoom()` when window size changes and remove unnecessary projection code (#992)
* Fix camera applyZoom when window size changes

* Revert "Fix camera applyZoom when window size changes"

This reverts commit 26154b5ff7.

* Fix pr
2022-12-29 16:54:01 +08:00
pietpukkel 24c3afa524
Fix for UIEditBox password on Mac/iOS (Montery+/15+). (#995)
Fix for UIEditBox password on Mac/iOS (Montery+/15+).
2022-12-27 14:26:09 +08:00
halx99 2e4324c363 Fix charset process in glfwCharCallback 2022-12-18 11:52:57 +08:00
CHP d79156d728
Improve Android cmake (#985)
* Update CMakeLists.txt

* Improve Andoid CMAKE
2022-12-17 16:35:34 +08:00
halx99 0a4bf2b3fa Move SIMD detection to AXConfigDefine.cmake 2022-12-17 11:56:48 +08:00
一线灵|Deal 5fe200ca0a
Fix #983 2022-12-12 19:41:07 +08:00
RH be224656fc
Move getWorldPosition() from Widget to Node class (#978)
* Committing genbindings changes

* Move getWorldPosition() method to Node class to allow world position to be retrieved for any node.
2022-12-07 09:24:46 +08:00
RH 7dba255a1d
Add a pool for GroupCommand rendering commands (#969)
* Committing genbindings changes

* Use a pool of GroupCommand entries to avoid multiple entries of the same group in the render queue in certain scenarios

* Ensure captureNode works as expected.

* Set member variables to default values when init method is called on the GroupCommand

* Explicitly reset the command state when retrieving a GroupCommand from the pool
2022-11-28 08:37:22 +08:00