Commit Graph

550 Commits

Author SHA1 Message Date
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