Commit Graph

1141 Commits

Author SHA1 Message Date
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
halx99 61484ca707 Bump 2.1.6 [skip ci] 2024-08-13 00:07:59 +08:00
halx99 b25b702d97 Release 2.1.5 (#2076)
* Fix  unexpected libpng used

* Fix string format incorrect for tests

* Fix #1751, use coroutine control AutoTest flow

* Update CHANGELOG.md

* Added OpenType font (.otf) to the noCompress list. (#2077)

* Update 1k & copyright notice in some sources

* Move doctest to axmol 3rdparty

* Fix ci

* Update 1kdist to v90

* Update 1kiss.ps1

* DrawNodeV2 0.95.1 (#2079)

* Rename remaining legacy engine related spells and improve code style

* Update 3rdparty README.md

* Fix checkReallySupportsASTC does not work on ios device

reported by @BIGCATDOG in https://github.com/axmolengine/axmol/issues/2078

* Fix ci

* FastRNG: add missing include for AXASSERT (#2081)

* Delete unused files

* Improve FileUtils

- Rename FileUtils::createDirectory to FileUtils::createDirectories
- Use splitpath_cb to optimize FileUtils::createDirectories
- Rename FileUtils::getFileShortName to FileUtils::getPathBaseName
- Rename FileUtils::getFileExtension to FileUtils::getPathExtension
- Add FileUtils::getPathDirName
- Add FileUtils::getPathBaseNameNoExtension
- Mark all renamed FileUtils stubs old name deprecated
- Mark all FileUtils offthread APIs deprecated

* Update box2d to v2.4.2

* Disable /sdl checks explicitly for winuwp

For axmol deprecated policy, we need disable /sdl checks explicitly to avoid compiler traits invoking deprecated functions as error

* Update cppwinrt to 2.0.240405.15

* Update simdjson to 3.10.0

* Fix box2d testbed compile error

* Improve file path to url

* Fix FileUtils::createDirectories unix logic

* axmol-cmdline: remove arch suffix for host build output directory

* Update CHANGELOG.md

* Update lua bindings

---------

Co-authored-by: Dani Alias <danielgutierrezalias@gmail.com>
Co-authored-by: aismann <icesoft@freenet.de>
Co-authored-by: smilediver <smilediver@outlook.com>
2024-08-11 23:51:35 +08:00
smilediver 869b413fff
Add missing include (#2075) 2024-08-06 19:22:02 +08:00
RH 3a46201c5a
Enhance Color4F and method naming change (#2072)
* Move set methods from Vec4 to base Vec4Base to allow usage with all subclasses of Vec4Base
Rename Vec4::set method to setDirection to reflect its actual purpose
Remove trivial copy constructor method since it does not need to be explicitly implemented

* Add copyright line
2024-08-04 19:50:14 +08:00
halx99 8fd2a551e8
Refactor math simd (#2070) 2024-08-04 09:46:36 +08:00
smilediver 39b6560290
Fix Curl downloader not observing set task limits (#2067)
* Delete unused variable

* Remove invalid comment

* Fix Curl downloader not observing set task limits
2024-08-03 02:19:00 +08:00
smilediver 807a91b49b
Optimize `Renderer::fillVerticesAndIndices()` (#2065)
* Optimize `Renderer::fillVerticesAndIndices()`

* Fix clobbered registers not being marked in inline assembly
2024-08-02 08:26:58 +08:00
halx99 377f340d0b
Fix #2060, make http request/respose reference counter thread-safe (#2064) 2024-08-01 04:41:27 +08:00
smilediver fed5f8a374
Optimize ProgramState::setTexture() to avoid vector (de)allocations (#2061) 2024-07-31 00:19:56 +08:00
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