Commit Graph

1160 Commits

Author SHA1 Message Date
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
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
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