Commit Graph

3854 Commits

Author SHA1 Message Date
halx99 599cbdb4c9 Fix ci 2024-04-24 01:48:22 +08:00
halx99 39b7ba6c61 Update build script path 2024-04-24 01:42:55 +08:00
halx99 f8de198e18 Improve build system 2024-04-24 01:39:49 +08:00
axmol-bot 96101ffe97
Committing luabindings for commit 16cb4b5 (#1846) 2024-04-23 22:54:44 +08:00
tkzcfc 16cb4b5e9d
When loading csb files, prevent repeated loading of plist files (#1844)
* When loading csb files, prevent repeated loading of plist files

* Add more feature

* Rename function

* Use isSpriteFramesWithFileLoaded to determine whether the atlas is loaded

* use string_view instead of string

* Update SpriteFrameCache.cpp

* Fix compilation error
2024-04-23 21:21:53 +08:00
halx99 f159250c4e Don't assert since we remove deprecated pixel formats 2024-04-22 23:07:09 +08:00
Deal 6f8e07167b
Revert "Fix failed assertion and memory leak with event listeners (#1837)" (#1841)
This reverts commit d9a95c6a8d.
2024-04-21 05:51:22 +08:00
Deal 74612ef296
Remove deprecated pixel formats L8, A8, LA8 (#1839)
* Remove deprecated pixel formats

* Fix ci

* Fixup [skip ci]

* Fixup [skip ci]

* Update tests [skip ci]
2024-04-20 22:29:16 +08:00
Tyelor D. Klein d9a95c6a8d
Fix failed assertion and memory leak with event listeners (#1837)
* Fix failed assertion and memory leak with event listeners

This solves an issue that was fixed for Cocos2d-x v3.16 and then reverted afterwards for "backwards compatibility".

I don't think we need this backwards compatibility anymore, and the benefits to cleaning up this memory outweigh the potential for some developers to need to refactor their code.

Specifically this also solves an ASSERT that fails when quitting the game on a scene which has nodes with Event Listeners that I experienced without this change, and with the Config.h setting AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS enabled.

* Fixed typo
2024-04-19 09:42:43 +08:00
smilediver 547b5c0b38
Fix glfw crash on macOS for large mouse button ids (#1835) 2024-04-19 09:26:54 +08:00
halx99 d03c823573 Update ChangeLog 2024-04-19 00:28:57 +08:00
halx99 3de47cd23a Remove unnecessary crc32 calc when read file from zip 2024-04-18 23:34:34 +08:00
halx99 18a2c9bdba Fix warnings 2024-04-18 23:34:09 +08:00
halx99 a22e56b0ea Update android media3 to 1.2.1 2024-04-18 23:33:39 +08:00
RH 801f5e0267
Display cmake command used by build script in console (#1834) 2024-04-18 22:51:51 +08:00
Tyelor D. Klein 8e37464d67
Fixed an issue where ProgressTimer didn't properly set or cascade its opacity (#1830)
This fixes a long standing bug from the Cocos2d-x  3.x days that I fixed in our source code for our games with it. I never made a pull request to Cocos2d-x since they stopped development and maintenance, but thought it might be useful for Axmol!
2024-04-18 09:28:55 +08:00
Tyelor D. Klein 332eb9afd3
Fixed ClippingNode stencil needing global z set manually (#1831)
This bug has existed since the Cocos2d-x 3.x days. If you set the global z order of a ClippingNode to anything other than the default value, then the ClippingNode fails to clip anything unless the global z order is also set for the Stencil of that ClippingNode. This change makes the ClippingNode._stencil's global z order to follow the ClippingNode's. (Note: you could still manually set the global z order of the stencil as desired to break the clipping. But now the default behavior works correctly and the way one would expect.)
2024-04-18 04:07:52 +08:00
Deal 1cfe6fcb3f
Improve MediaPlayer: handle video rotation properly (#1823)
* Improve MediaPlayer: handle video rotation properly

* Fix nativeHandleVideoSample prototype

* Fixup

* Fixup
2024-04-18 04:06:53 +08:00
halx99 940db1e351 Change android default screenOrientation to sensorLandscape 2024-04-17 22:59:25 +08:00
smilediver 37d9a0db0b
Fix FileUtilsApple::getPathForDirectory() checking wrong path (#1828) 2024-04-17 22:36:51 +08:00
Tyelor D. Klein 4f343c44ab
Fixed issue where UIWidget couldn't be reselected (#1827)
If a UIWidget gets focus, and then loses focus (but another UIWidget doesn't gain focus when it does so). Then that original UIWidget cannot be re-focused until a different UIWidget gets focus first.
2024-04-17 09:34:12 +08:00
Tyelor D. Klein 7a9dea4f6f
[Improvement] Add Borderless Windowed Mode (#1826)
This PR adds borderless windowed mode support to the GLViewImpl class. For backwards compatibility the setWindowed function uses a default parameter of 'false' for borderless.
2024-04-17 09:33:55 +08:00
Tyelor D. Klein 20e7b1738c
Add CC_USE_CULLING Alias to cocos2d.h (#1825)
* Add CC_USE_CULLING Alias to cocos2d.h

Spine runtimes check for CC_USE_CULLING, but Axmol never defines an alias for CC_USE_CULLING to point to the config definition for AX_USE_CULLING. This solves that issue.
2024-04-17 09:22:19 +08:00
aismann efac5a97e3
Update feature_request.md (#1821) 2024-04-16 22:06:32 +08:00
halx99 31acc99098 Update llhttp to v9.2.1 2024-04-15 22:31:26 +08:00
halx99 629e387411 Fix video player crash on apple platforms 2024-04-14 22:49:02 +08:00
Deal 9f63883994
Update 1kdist to v83 2024-04-14 09:10:22 +08:00
halx99 f5b6d7029f Fixup 2024-04-13 22:20:13 +08:00
halx99 cec839a96f Improve build system 2024-04-13 22:11:22 +08:00
smilediver 74c6a4a417
Fix same uniforms in fragment and vertex shaders not working in Metal (#1808)
* Fix same uniforms in fragment and vertex shaders not working in Metal

* Add missing copyright

* Fix lua bindings for UniformLocation conversion

* Fix uniform mismatch in positionNormalTexture.vert and colorNormalTexture.frag

* Enable ProgramState::setFragmentUniform() only for Metal
2024-04-12 23:12:51 +08:00
halx99 1fff0fa746 Add experimental wasm64 support
really experimental, just build, can't run yet
2024-04-12 20:34:59 +08:00
halx99 a0f2c4e489 Add cmake option: `AX_EXT_HINT` to set default extensions state 2024-04-11 22:23:02 +08:00
halx99 197f2adfcd Add create isolated project support (#1801)
axmol new HelloCpp -i
2024-04-10 22:11:42 +08:00
halx99 9872818890 Fix typo: BLEND_CLOLOR ==> BLEND_COLOR 2024-04-10 21:47:00 +08:00
halx99 2ccdb3dbcd Fix typo: RESERVE_SUBTRACT ==> REVERSE_SUBTRACT 2024-04-10 21:45:48 +08:00
Deal 5a03fa2b21
Fix #1805 2024-04-09 23:26:29 +08:00
RH 5cb5ce79c3
Update to 3rdparty v82 (#1803)
* Add 3rdParty v82

* Fix openssl target linking

* Use alias target for OpenSSL on all platforms
2024-04-09 21:08:34 +08:00
halx99 d37f23997a Improve axmol cmdline 2024-04-09 02:42:25 +08:00
smilediver 2493a6d17b
Fix crash on iOS (#1799) 2024-04-09 01:40:41 +08:00
halx99 68a5c250cd Fix build android with axmol cmdline arch not working 2024-04-09 01:37:04 +08:00
halx99 320124487e Update gradlew scripts 2024-04-08 23:29:45 +08:00
halx99 f4addb3447 Fix bullet warnings 2024-04-08 22:37:55 +08:00
halx99 b2d2f98525 Remove unnecessary include statments 2024-04-08 22:01:02 +08:00
halx99 60c4f6c340 Fix win32 link error
attention linux: the libaxmol.a must first link library, otherwise will cause
link error.
2024-04-08 21:52:50 +08:00
halx99 1fdacfd45a Fix android lua build 2024-04-08 02:15:33 +08:00
halx99 56fb742c32 Fix linux lua link error 2024-04-08 02:10:31 +08:00
Deal fbdcd33df5
Update CHANGELOG.md 2024-04-08 02:02:01 +08:00
halx99 5ff87acdfe Add fallback ttf render support 2024-04-08 01:55:41 +08:00
halx99 3a5498bcdf Update ChangeLog 2024-04-07 23:50:38 +08:00
halx99 544664033e Don't generate changelog for prerelease 2024-04-07 23:45:14 +08:00