Commit Graph

1199 Commits

Author SHA1 Message Date
halx99 d956f43f69 Improve MediaPlayer, refer #2253 2024-12-05 01:25:34 +08:00
RH c37bcf8977
Prevent excessive calls to deleteBackward method which may cause crashes on Android (#2248)
* Pass the number of characters to delete from a TextField

* Include TextFieldEx.h reference in axmoil-ui.h

* Remove logging calls used for testing

* Update parameter name
2024-11-28 23:12:21 +08:00
RH 1e8fbb991d
Detect CTRL+A key combination to select all text in EditBox (#2251)
* Detect CTRL+A key combination to select all text in EditBox

* Ensure EditBox has focus before checking for CTRL+A combination
2024-11-27 00:41:03 +08:00
RH 449d921063
Add support for selecting all text in editbox via CTRL+A (#2238) 2024-11-23 02:10:14 +08:00
smilediver 502961dcc5
Metal: enable mipmap support (#2235) 2024-11-15 23:12:02 +08:00
halx99 1e633a015d
Remove TTF Font charCode 65535 limit 2024-10-29 06:53:23 +08:00
aismann 53ec946592
Improve DrawNode::drawPie() (#2222) 2024-10-28 21:43:09 +08:00
aismann c993da1b30
Make win32 messageBox always TOPMOST (#2221)
Windows: messageBox should be "always" TOPMOST
2024-10-28 21:24:20 +08:00
aismann 044cc87543
Fix DrawNode::drawPie(DrawMode::Line, thickness =1) draw a closed line (like DrawMode::Semi) (#2217) 2024-10-22 21:56:00 +08:00
halx99 c55e80e999 Fix curl link error on macOS 2024-10-22 12:48:42 +08:00
halx99 5d9b18de0d Rollback fmt to 11.0.2 & emsdk to 3.1.67
- genbindings llvm-15.0.7 can't works on fmt latest: unknown template argument
- fmt 11.0.2 can't compile on emsdk 3.1.68+
2024-10-20 23:48:51 +08:00
aismann 2e70bfc98a
DrawNode calls: replacing Color4F with Color4B (without the 'test' folder!) (#2192)
* drawNode calls: replace Color4F with Color4B

* replace Color4F

* removed unused includes
2024-10-01 19:10:07 +08:00
roman.semenov 4644b2b428 Scheduler: fix invalidated iterator access in `unscheduleAllWithMinPriority()` 2024-10-01 09:31:30 +08:00
halx99 95629d9978 Update 3rd libs & emsdk 2024-09-28 15:41:34 +08:00
smilediver 62eebaa8af
`AxmolActivity` refactoring and fixes (#2185)
* AxmolActivity: add logging of activity lifecycle changes

* AxmolActivity: simplify and fix director not resumed after system dialog

* AxmolRenderer: fix lost state when app activity is relaunched

* AxmolGLSurfaceView: remove accidental exception throw
2024-09-28 12:41:54 +08:00
halx99 08b1657e14
Fix #2186 2024-09-27 21:40:24 +08:00
smilediver 5eab46f3cb
DownloaderCURL: fix too many open files and other fixes (#2182)
* DownloaderCURL: fix too many open file handles and other fixes

* Downloader: remove unused transferDataToBuffer

* DownloaderCURL: remove unused variables

* DownloadTaskCURL: add explicit for constructor
2024-09-25 00:57:35 +08:00
RH dfab7a32d3
Fix issue with incorrect static value usage in JNI array methods (#2178) 2024-09-24 22:02:00 +08:00
aismann f320ba1f66
Remove all DrawNode setLineWidth() stuff (#2172)
* remove all setLineWitdth stuff

* Update axlua_base_auto.cpp

* Update DrawNode.cpp
2024-09-23 22:13:12 +08:00
smilediver 5c31ecb3c2
Optimize DrawNode (#2165)
* DrawNode: refactor buffer update

* DrawNode: optimize transform application

* DrawNode: remove unused variables

* DrawNode: use reinterpret_cast

* DrawNode: fix crash on render context loss
2024-09-21 23:55:26 +08:00
halx99 f98b776dc0
Fix #2169 (#2170)
* Fix #2169

* Cleanup code
2024-09-21 01:24:44 +08:00
halx99 805390e9d7
Fix #2163 (#2166) 2024-09-20 07:30:12 +08:00
Thang Nguyen 1e178b8273
Update Sprite.cpp (#2164) 2024-09-19 21:53:45 +08:00
RH ef5204385b
Fix fps issue when certain animation intervals are set, such as (1 / 30). (#2162) 2024-09-18 23:10:29 +08:00
halx99 1de06414cc
Fix #2161 2024-09-18 09:05:41 +08:00
aismann c488380170
Add (missing) parameter 'drawLineToCenter' to 'drawSolidCircle(...)' (#2160)
* Add parameter drawLineToCenter to drawSolidCircle

* fix  drawSolidTringle/drawTriangle

* Update axlua_base_auto.cpp
2024-09-17 22:09:05 +08:00
aismann 46332b544b
Fix #2140 DrawNode issue (#2158) 2024-09-16 22:51:15 +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
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
halx99 6a78b18781 Use pod_vecttor for DrawNode 2024-09-08 00:17:47 +08:00
Tosik86 63224f3612
Fix move constructor comment in Data class (#2132) 2024-09-07 13:28:51 +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
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
RH 0fbf9f7fde
Set RenderTexture content size (#2120) 2024-08-30 22:46:40 +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