Commit Graph

1118 Commits

Author SHA1 Message Date
RH 7a5c45a75b
Ensure the RenderTexture reference is valid on threaded task completion (#2024) 2024-07-11 09:07:53 +08:00
halx99 87dd5abce1 Fix #2023 2024-07-09 23:04:00 +08:00
halx99 0b2e9d07c9 Fix #1943, Make extension luabinding can be controlled by AX_EXT_HINT 2024-07-08 23:17:25 +08:00
RH e590b9d146
Set several log messages to verbose level (#2021) 2024-07-05 22:17:00 +08:00
halx99 a3a5203fb5
Mark AXLOG, AXLOGINFO, AXLOGWARN, AXLOGERROR deprecated (#2017)
* Mark AXLOG, AXLOGINFO, AXLOGWARN, AXLOGERROR deprecated

* Fix winuwp build
2024-07-05 07:51:36 +08:00
RH 78c7e0022a
Fix call to incorrect java method (#2015) 2024-07-04 21:17:09 +08:00
Paulo Coutinho 9886f7d1cc
Fix apple controller to support four players (#2009) 2024-06-30 22:55:47 +08:00
smilediver d79a202e6e
Renderer fixes (#1996)
* Backend: remove RenderTargetFlag and refactor depth/stencil state setup

* Fix Z-test and Z-write being enabled by default for main queue

* GL: fix framebuffer attachment not being cleared

* Use dirtyFlags for RenderTarget update

---------

Co-authored-by: halx99 <halx99@live.com>
2024-06-29 00:20:32 +08:00
halx99 5ffd6ce09a Improve downloader
- print http respone code when error
- make checksum case-insensitive
2024-06-28 01:03:31 +08:00
RH 042c9b712e
Make debug and verbose level logging in release builds optional (#2006)
* Debug (AXLOGD) and verbose (AXLOGV) level logging should be disabled by default in release builds.

* Fix preprocessor check
2024-06-27 23:47:42 +08:00
halx99 b6b6a15284
Improve curl downloader (#1999) 2024-06-22 08:29:21 +08:00
halx99 2193b5047f
Fix #1984 2024-06-18 23:38:58 +08:00
halx99 a88be080b3 Use AXLOG for audio module 2024-06-17 22:43:00 +08:00
halx99 e02741d0c8
Use new logging system for audio (#1995) 2024-06-16 23:51:03 +08:00
halx99 74f27fa62c Don't output log when custom ILogOutput was set (#1992)
* Don't output log when custom ILogOutput was set

* Fix ci
2024-06-16 23:09:29 +08:00
Purple 6cb7618ed0
Linux WebView implementation (#1985)
* linux webview start

* Linux UIWebView phase1

* update setup for linux uiwebview

* add depends for arch

* removed unnecessary XReparent call

* Fixed some XWayland issues

* finalizing linux webview implementation

* enabled webview tests on linux

* updated copyright link

* removed some unnecessary comments

* some formatting

* some more formatting

* fixed a test typo

* removed some unnecessary codes

* removed some unnecessary comments
2024-06-13 22:49:59 +08:00
smilediver 3bcc1cf7e8
Renderer recreated fixes (#1988)
* Fix Texture2D losing file path when renderer is recreated

* Fix textures with generated mipmaps not reloading correctly when renderer is recreated
2024-06-13 13:14:33 +08:00
halx99 fe89c34b2b Improve code style 2024-06-12 00:43:02 +08:00
halx99 82744abd8b
Bump 2.1.4 2024-06-10 10:29:08 +08:00
halx99 ad051f353f
Update TLD to axmol.dev in sources (#1977) 2024-06-10 02:25:43 +08:00
RH 4abc7f4a94
Only pause GLSurfaceView if activity is moved to the background, and not if it just loses focus (#1942)
* Only pause GLSurfaceView if activity is being stopped, and not if it just loses focus

* Add copyright notice

* Ensure foreground and background events are not sent out on initial app start
Remove work-around in nativeOnResume to avoid calling applicationWillEnterForeground twice since it is no longer required
Remove redundant setRenderMode calls in AxmolGLSurfaceView

* Add copyright notices
2024-06-09 10:18:34 +08:00
AlexandreK38 aacfa570a0
Count run action finish to call final finish when two run actions are… (#1946)
* Count run action finish to call final finish when two run actions are performed

* change logic to use wait count
2024-06-08 23:14:16 +08:00
halx99 292125f9ee Improve JobSystem 2024-06-08 01:09:17 +08:00
halx99 8eeed46cfc
Add JobSystem support (#1968) 2024-06-07 00:33:01 +08:00
AlexandreK38 79aabfd6af
Sprite and TextureCache from ax::Data (#1967) [skip ci]
* Add Sprite and TextureCache way to use image from Data

* add Sprite cpp tests

* Apply suggestions from code review

---------

Co-authored-by: halx99 <halx99@live.com>
2024-06-07 00:30:55 +08:00
Purple 22ecef1c77
just addressing some compiler warnings on windows (#1954)
* fixed UIWebViewImpl-win32 warning C4244 while changing LPWSTR to string

* use direct `socket_native_type`

* directly use HMENU instead of int

* not sure why it wasn't auto converted but msvc spitted warnings

* we're moving it, it doesn't need to be constant, using ntcvt::from_chars

* ignore it to reduce one more warning

* add some missing `noexcept`

* reverted some const removal didn't realize it was used for rvalues
2024-06-03 23:16:54 +08:00
RH 66ca90cf41
Apply child stencils correctly to the clipping node (#1957)
* Child stencils are now applied correctly to the clipping node
Fix incorrect reference count for original program states stored in collection

* Add test for unique child stencils

* Fix comment
2024-06-03 23:15:57 +08:00
aismann f2938663e0
Replace DrawNode with DrawNodeEx (Step 1: no longer optional, changed OFF to ${AX_EXT_HINT}) (#1955) 2024-06-03 13:09:39 +08:00
aismann 2bf755c049
Replace DrawNode with DrawNodeEx (no longer optional) see #1949 (#1950) 2024-06-02 19:42:19 +08:00
AlexandreK38 1639861dc5
Fix Callback and store Renderer Image type (#1945) 2024-05-31 13:01:42 +08:00
RH eee37e5760
Add support for necessary events to be sent regardless of event dispatcher enabled state (#1940)
* Add support for necessary events to be sent regardless of event dispatcher enabled state

* Revert accidental change
2024-05-30 13:34:25 +08:00
RH b54775d11f
[Android] Calculate safe area inset values for devices with rounded corners (#1934)
* [Android] Add support for factoring in device rounded corner inset values for Android API 31 or higher

* Check for null pointer return values from Java.
2024-05-28 20:06:15 +08:00
RH 741472398f
Do image processing to reverse premultiplied alpha in separate thread (#1929)
* Add missing parameter names

* Move processing intensive operation to a separate thread

* FileUtils instance may not be thread safe
2024-05-26 09:26:06 +08:00
Paulo Coutinho 49ba0ddd67
Fix descriptor typo (#1928) 2024-05-25 14:39:18 +08:00
smilediver 7ca10e7f0c
Fix passing non null terminated strings for null terminated params (#1924)
* Fix passing non null terminated strings for null terminated params

* Change stringWithUTF8String with initWithBytes
2024-05-25 08:07:31 +08:00
smilediver 02bb17d867
Set AX_USE_METAL and AX_USE_GL to 1 if defined (#1916) 2024-05-23 01:27:26 +08:00
RH 6e321ae265
Update the CMake minimum version requirement to 3.23.0+ (#1918) 2024-05-23 01:23:56 +08:00
RH 2f8579f189
Allow media controls to be rotated left or right by 90 degrees (#1910) 2024-05-21 23:41:02 +08:00
Turky Mohammed ef3f14c2d7
[BUG] Fix system font blurring (#1907)
* Update Label.cpp

* Update core/2d/Label.cpp

---------

Co-authored-by: halx99 <halx99@live.com>
2024-05-21 21:49:06 +08:00
RH 49bd2bc7de
Add support for ensuring sprite content size does not change on new texture (#1897)
* Add support for ensuring sprite content size does not change on new texture

* Use better method name for enabling sprite dynamic sizing
2024-05-16 19:33:09 +08:00
Tyelor D. Klein 99866d9462
Retain _debugDrawNode in Label (#1890)
* Retain _debugDrawNode in Label

This fixes a memory corruption bug and resulting crash in the TextFieldTTF (and likely other TextField classes) where the _debugDrawNode wasn't being retained, and the label isn't added to the scene for a TextField, but is maintained by the TextField. This caused _debugDrawNode in the Label class to get cleaned up, even though Label still thought it had a valid reference to a DrawNode.

* Added missing Axmol copyright

* Changed Label to use visit for _debugDrawNode
2024-05-16 19:32:53 +08:00
halx99 1baf5cde3b Fixup 2024-05-11 01:22:27 +08:00
halx99 f0c24eee34 Improve UITextFieldEx 2024-05-11 00:21:38 +08:00
halx99 3ba2ef2d61 Remove unused fileds from ax::Objec 2024-05-05 00:42:16 +08:00
Deal 004065a054
Rename ax::Ref ==> ax::Object (#1877)
* Rename ax::Ref ==> ax::Object

* Update Object.h [skip ci]
2024-05-03 22:15:08 +08:00
halx99 13a7258150 Remove unused files[skip ci] 2024-05-02 15:56:04 +08:00
RH d6781284a5
Media controller content size should be based on video size not media player size. (#1873) 2024-05-01 12:49:08 +08:00
smilediver d845e54b49
Fix FileUtils on macOS (#1863)
* Fix FileUtils::getFileSize() not returning -1 when file is not found

* Fix FileUtils::fullPathForDirectory() not appending a trailing slash

* Fix `not` and `and` keyword usage

* Fix FileUtils::getDefaultResourceRootPath() returning nothing on macOS

* Fix FileUtils::isFileExist() returning true for directories on macOS
2024-04-30 20:03:58 +08:00
RH b6792383a2
Fix accidental removal of break statement. (#1861) 2024-04-29 09:15:33 +08:00
Deal 32250c8355
Fix #1838
Change parameter 'sharedRT' of RenderTexture::create to false
2024-04-27 10:27:44 +08:00