Commit Graph

4099 Commits

Author SHA1 Message Date
Tosik86 7098180e83
Fix comment in PauseTest. Add logs to check time in console. (#2157) 2024-09-16 09:20:11 +08:00
halx99 2d16634072
Fix compiling deprecated issues (#2154) 2024-09-15 23:37:42 +08:00
halx99 6ce78c0913
Add build on ubuntu 24.04 support (#2152) 2024-09-15 22:09:17 +08:00
halx99 cfcdddd89b
Enable cache render data for webgl by default (#2151)
* Remove unused static function
2024-09-15 06:00:48 +08:00
halx99 9258d8a47f
Fix #2147 full screen incorrect on macOS (#2150)
* Fix #2147 full screen incorrect on macOS
2024-09-15 02:38:34 +08:00
halx99 440e37475a
Fix RenderTargetGL FBO not recreate when recv EVENT_RENDERER_RECREATED (#2148)
Improve code style ensure tex storage for render target attachment
2024-09-15 02:03:43 +08:00
halx99 76b30a9a80
No longer add sprite as child of RenderTexture (#2149) 2024-09-15 02:02:21 +08:00
RH a9b07919f5
[Android] RenderTexture data needs to be saved to the cache before the GLSurfaceView context is lost (#2146)
* Ensure render target is still valid to correctly cache RenderTexture instances before application goes to background

* setPreserveEGLContextOnPause should be true by default

* Ensure onResume logic is only run if GLSurfaceView is paused.

* Set paused state to false when GLSurfaceView is resumed
2024-09-14 23:24:20 +08:00
smilediver 117c4e6886
Math: remove and replace GP_ASSERT with AX_ASSERT (#2143) 2024-09-14 08:52:46 +08:00
halx99 c524c7dc8b
Fix EventMouse coords (#2141) 2024-09-14 00:58:09 +08:00
halx99 470efb32f1 Fix unit-tests fail on osx some times 2024-09-13 23:09:48 +08:00
RH 4c664948f2
Fix for incorrect bits per pixel set on texture reload (#2138)
* Set pixel format of cached FPS texture to correct value

* Do not change _bitsPerPixel if it is a valid value

* Only set _bitsPerPixel if it is the default value of 0

* Assert that size is not equal to 0
Move width, height and bitsperpixel clamping

* Deprecate findVolotileTexture and replace with getOrAddVolatileTexture.

* Add missing static specifier

* Replace calls to findVolotileTexture with getOrAddVolatileTexture
2024-09-13 20:53:31 +08:00
halx99 a6dd7e932d
Allow turn on/off deprecated features, follow #2111 (#2136)
- Add new cmake option: `AX_CORE_PROFILE`
- Remove deprecated stubs from extension: `cocostudio`
- Remove `AX_DEPRECATED_ATTRIBUTE`
2024-09-13 02:17:35 +08:00
Tosik86 c3d54767a2
Refine contributing.md guide (#2135)
* Refined submitting patches steps in CONTRIBUTING.md

* Add forgotten $ sign to CONTRIBUTING.md code snippet

* Add forgotten colon to CONTRIBUTING.md file
2024-09-11 08:31:08 +08:00
halx99 3d9497515f Update gradle wrapper to 8.10 2024-09-08 00:18:41 +08:00
halx99 6a78b18781 Use pod_vecttor for DrawNode 2024-09-08 00:17:47 +08:00
CHP c6855d0164
Use gradle-8.8-bin.zip everywhere (#2134) 2024-09-07 23:04:16 +08:00
Tosik86 63224f3612
Fix move constructor comment in Data class (#2132) 2024-09-07 13:28:51 +08:00
axmol-bot 2fddd426f5
Committing luabindings for commit dfa68a4 (#2131)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-09-07 09:53:50 +08:00
halx99 dfa68a4cdf Rename FileUtils::getFileExtension to getPathExtension 2024-09-07 00:18:08 +08:00
halx99 23a0132203 Fix android media engine usingWrongThread exception 2024-09-07 00:06:54 +08:00
halx99 dfa619259d Fix ChangeLog 2024-09-06 23:33:44 +08:00
axmol-bot e3e58d7a28
Committing luabindings for commit 4ae3792 (#2130)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-09-06 23:00:52 +08:00
aismann 4ae3792164
DrawNode V2 (#2124)
* DrawNodeV2 ready4merge

* Update README.md

* Lua stuff

* Update DrawNode.h

* Update DrawNode.cpp

* Update DrawNode.cpp

* Update DrawNode.cpp

* Add the cocos2dx test again, add some improvements

* Some improvements

* Remove CandyMix from Android devices

* Update DrawNodeTest.cpp

* Clean tester code
2024-09-06 21:31:18 +08:00
smilediver 7b377d6351
Math optimizations (#2115)
* Mat4: make some methods inlineable

* Vec3: make some methods inlineable

* Vec4: make some methods inlineable

* Color: make some methods inlineable

* Quaternion: make some methods inlineable

* Rect: make some methods inlineable

* Vec2: make some methods inlineable

* Math: mark constants inline

* Math: fix DLL build

* Vec2: make constants inlineable

* Color: remove inline file

* Mat4: remove inline file

* Quaternion: remove inline file

* Rect: remove inline file

* Vec2: remove inline file

* Vec3: remove inline file

* Vec4: remove inline file
2024-09-05 08:57:26 +08:00
aismann 5246c8d71f
Update sweep.h (#2121)
fix invalid UTF-8
2024-08-30 22:52:06 +08:00
RH 0fbf9f7fde
Set RenderTexture content size (#2120) 2024-08-30 22:46:40 +08:00
RH efa3189229
Remove unreferenced sprite from test scene (#2119)
* Remove sprite once action is complete since it is no longer required

* Add copyright notice
2024-08-30 22:46:10 +08:00
halx99 62393b9271
Enable vsync by default (#2118)
* Enable vsync by default

* Update comment

* Update comment [skip ci]
2024-08-30 09:14:22 +08:00
halx99 80f55eb87a
Delay load mf.dll, mfplat.dll (#2116) 2024-08-30 08:36:08 +08:00
halx99 80c70f42bf
Bump version 2.2.0
We are start flowing semver.org
2024-08-29 22:54:53 +08:00
halx99 7025b1e6fc
Improve android media player, also fix #2101 (#2109)
a. handle cbcr offset properly
b. handle output dim properly
2024-08-29 01:40:08 +08:00
smilediver 89629c9dd7
Sprite: show stretch warning only if stretching is enabled (#2113) 2024-08-29 00:18:19 +08:00
RH 284fcf243a
Widget should not override normalized positioning if it is set. (#2110)
Override setPositionNormalized to be functionally equivalent to setPosition
2024-08-28 08:21:46 +08:00
halx99 58516038e1 Improve android FileUtils 2024-08-28 01:25:47 +08:00
j-jorge 2fbb6b56ce
Remove usage of the NS_AX macro. (#2107) 2024-08-28 00:45:26 +08:00
halx99 9edbdebee2 Fix log format 2024-08-27 23:50:29 +08:00
smilediver ebdf2a7f6f
SpriteFrameCache: fix dangling ref in `removeSpriteFramesFromTexture()` (#2106) 2024-08-27 23:28:51 +08:00
smilediver e6174ff62f
Node: fix `setPosition()` and `setPositionNormalized()` not switching modes if positions match (#2102) 2024-08-27 20:24:28 +08:00
j-jorge b436da431f
Remove the USING_NS_AX and NS_AX macros. (#2103) 2024-08-27 19:46:15 +08:00
j-jorge 15268dc182
Remove the NS_AX_BEGIN and NS_AX_END macros. (#2100) 2024-08-26 00:25:33 +08:00
halx99 f14276c33e
Update freetype to v2.13.3 (#2098) 2024-08-22 07:27:02 +08:00
halx99 2ecdd78537 Improve setup scripts 2024-08-22 00:05:09 +08:00
aismann 8341ce67b9
DrawNodeV2 0.97 (ready for "replacing" DrawNode) (#2095) 2024-08-19 18:52:52 +08:00
smilediver 3f8d47dc36
Trim trailing whitespace for files in `core` folder (#2089) 2024-08-15 12:14:02 +08:00
smilediver ad94765c09
Remove some bad warnings (#2088) 2024-08-15 12:13:42 +08:00
RH a2e6e85927
Update DevSetup.md with iOS simulator build commands (#2087) 2024-08-15 12:13:21 +08:00
aismann b1f88b4e9d
DrawNodeV2 0.96.0 (#2086) 2024-08-14 22:09:00 +08:00
RH 80a82555c0
Allow setting custom config for ImGui fonts (#2085) 2024-08-13 00:08:49 +08:00
halx99 61484ca707 Bump 2.1.6 [skip ci] 2024-08-13 00:07:59 +08:00