Commit Graph

1130 Commits

Author SHA1 Message Date
Turky Mohammed 4de7e284c9
Move FastRNG to ax ns and more improvements (#2057) 2024-07-28 09:16:47 +08:00
Turky Mohammed 4c80b80ff7
Improve FastRNG implementation (#2056)
* Update FastRNG and improve particle system and tests

* Update FastRNG.h

* remove unnecessary includes

* Adapt unit_tests

* unit test rotL too
2024-07-27 23:44:25 +08:00
halx99 499c347bda Fix android VolatileTexture memory leak when addImage(img,k,fmt) 2024-07-25 22:35:18 +08:00
j-jorge b4667ace78
Handle premultiplied alpha for grayscale PNGs. (#2047) 2024-07-23 21:26:54 +08:00
halx99 47942ddd80
Add render I420 video support, fix #2049 (#2050) 2024-07-23 01:10:44 +08:00
halx99 6e09fdb1fe Bump 2.1.5 2024-07-22 23:33:56 +08:00
smilediver 1c33176dd8
Some warning and other minor fixes (#2038)
* FastRNG: fix warnings, optimize bool01()

* UTF8: limit warnings on Android due to jni.hpp include

* Remove unused includes

* UTF8: add missing fmt/format.h include

* Tests: remove invalid test
2024-07-19 07:59:04 +08:00
halx99 d8343ea6ad Update emsdk to 3.1.63 2024-07-15 23:33:36 +08:00
halx99 11b8d28fd7
Mark StringUtils::format deprecated, use fmt::format instead (#2029) 2024-07-13 22:53:14 +08:00
halx99 b3ec72753f Remove redundant log message 2024-07-12 23:57:14 +08:00
RH 5c6338aac0
Change AXLOGI to more appropriate AXLOGD for several log calls (#2028) 2024-07-12 13:05:26 +08:00
aismann fe0adcbb1f
Rename all AXLOG/printf to AXLOGD (without .\core, .\3rdparty) (#2020) 2024-07-11 23:28:31 +08:00
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