Commit Graph

3881 Commits

Author SHA1 Message Date
smilediver 02bb17d867
Set AX_USE_METAL and AX_USE_GL to 1 if defined (#1916) 2024-05-23 01:27:26 +08:00
RH db1b022128
Fix crash due to invalid pointer (#1920) 2024-05-23 01:25:59 +08:00
RH 6e321ae265
Update the CMake minimum version requirement to 3.23.0+ (#1918) 2024-05-23 01:23:56 +08:00
RH 93042d2ad9
[Android] Add x86_64 to example list of possible target architectures (#1919) 2024-05-23 01:22:18 +08:00
halx99 2f5bc186a5 Update ChangeLog 2024-05-22 21:42:04 +08:00
aismann e1b3023010
Remove box2d-optimized (#1913)
Removed Box2D-optimized

it's is now obsolete; Erin Catto has developed Box2D v3 with many performance improvements, so please use that instead
2024-05-22 20:32:05 +08:00
aismann 5b8a07413b
DrawNodeEx/DrawNodeExTest update (#1914)
* Fix issue #1546 of UILayout(#1549) and small performance boost

* add test

* Update DrawPrimitivesTest.cpp (Smaller tester code)

* Update DrawNodeEx.h

AX_EX_DLL

* Update AXLinkHelpers.cmake

* Update Console.cpp (removed the '\n' which creates an second (empty) line)

* segment stuff

* .

* add some more tests

* Issue  1888

* .

* add all DrawNode cocos2dx

* .

* .

* .

* add feature for drawing in correct order

* .

* Update DrawNodeEx.cpp

* .

* Update DrawNodeEx.cpp

* DRAWNODE_TRIANGLE_ONLY

* DRAWNODE_DRAW_LINE_POINT

* .

* Update DrawNodeExTest.cpp

* Update DrawNodeExTest.cpp

* .

* .

* Add round brackets

* commendet this both lines (check it in next version)

* .
2024-05-22 18:48:36 +08:00
halx99 1a15620f4e Fix #1906
The tools/ci/genbindings.ps1 now support windows,linux,mac
2024-05-22 08:50:32 +08:00
smilediver ddeb14c160
Fix shaders not copying to final build on macOS for non Xcode builds (2) (#1908)
* Fix shaders not copying to final build on macOS for non Xcode builds

* Fix macOS build after adding minimum CMake 3.20 requirement

* Refactor "Fix macOS build after adding minimum CMake 3.20 requirement"
2024-05-22 01:51:09 +08:00
halx99 cb142c6c4e Fix #1911 [skip ci] 2024-05-22 01:23:28 +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
halx99 fcc282d116 Improve ci [skip ci] 2024-05-21 23:40:01 +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
halx99 1e40692a6d Fix typo [skip ci] 2024-05-20 23:52:19 +08:00
halx99 d9563d1741 Fix docs menu_versions 2024-05-20 23:46:48 +08:00
halx99 c07139544b Update imgui to 1.90.6 2024-05-19 01:42:48 +08:00
halx99 b550d569a9 Update prebuilt tool `glslcc` to 1.9.5
- macos-arm64 support and built for macos-10.15+
2024-05-19 01:15:02 +08:00
halx99 53e2fbad14 Rename 1k/build.ps1 ==> 1k/1kiss.ps1 2024-05-18 23:30:26 +08:00
halx99 52288a2f14 Fix build-site.ps1 [skip ci] 2024-05-18 17:33:40 +08:00
halx99 5b70bf82c9 Update build site [skip ci]
Due to appveyor limit 1 hours build time and always failed with timeout, so we migrate ci:wasm to github action
2024-05-18 17:25:31 +08:00
halx99 c9b4d3caff
Try enable wasm on github action (#1903)
* Update build.yml

* Upload artifacts for wasm ci

* Fixup

* Improve tools/cmdline/build.ps1

- Improve unhandled args forward
- Fix parse unexpected arg with differrent args order

* Fixup
2024-05-18 14:22:46 +08:00
halx99 9bb13ac8a6 Prepare release 2.1.3 2024-05-17 23:56:54 +08:00
halx99 fda69b3391 Add build optimize flag: O0: Debug, O1: MinSizeRel, O2: RelWithDebInfo, O3: Release 2024-05-17 00:15:59 +08:00
axmol-bot beb873ea2a
Committing luabindings for commit 49bd2bc (#1900) 2024-05-16 21:49:22 +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 a50eb06322 Update astcenc: 4.7.0 ==> 4.8.0, libwebp: 1.3.2 ==> 1.4.0 2024-05-11 00:37:56 +08:00
halx99 893ccab0bb Update simdjson to 3.9.2 2024-05-11 00:27:08 +08:00
halx99 f0c24eee34 Improve UITextFieldEx 2024-05-11 00:21:38 +08:00
aismann 90586f8a76
Bring the latest extension::DrawNodeEx to axmol (#1883)
* latest version 0.91

* renamed all ensureCapacityGL* to ensureCapacity*

* replace  v2ToTex2F ->Tex2F
2024-05-07 23:07:04 +08:00
RH 5ee1c8e74f
[FairyGUI] Use content scale factor to correctly set up a scale 9 sprite (#1884)
* Ensure that the content scale factor is used to correctly set up a scale 9 sprite

* Insets defined in FairyGUI editor should be scaled too, which simplifies the fix.

* Update copyright for Axmol related modifications
2024-05-06 20:39:26 +08:00
halx99 1d8233d3ad Add AXLOGD,AXLOGI,... functions for lua 2024-05-06 09:10:26 +08:00
halx99 10d3e81329 Update emsdk to 3.1.59 2024-05-05 23:25:52 +08:00
axmol-bot ded98f57dd
Committing luabindings for commit 33c328e (#1879)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-05-05 00:56:36 +08:00
halx99 3ba2ef2d61 Remove unused fileds from ax::Objec 2024-05-05 00:42:16 +08:00
halx99 33c328e910 Update luabinding: ax::Ref ==> ax::Object 2024-05-05 00:34:51 +08:00
halx99 0580a4415a Fix templates 2024-05-05 00:22:53 +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 b122a1b96a Fix linking prebuilt error
- Add missing preprocessors
- Use plain name for zlib & png to avoid linking prebuilt axmol error
2024-05-02 20:59:29 +08:00
halx99 13a7258150 Remove unused files[skip ci] 2024-05-02 15:56:04 +08:00
halx99 87e4174122 Update ChangeLog 2024-05-02 15:49:26 +08:00
halx99 e3e3460aca Update ImGui to v1.90.5 2024-05-02 15:37:12 +08:00
RH 8b4ac1d262
Setup vertex data before adding new RenderCommand to ensure data is copied across to backend buffers correctly. (#1875) 2024-05-02 10:33:04 +08:00
smilediver 561b8c2349
Enable running `unit-tests` in GitHub workflow (#1871)
* Enable running `unit-tests` in GitHub workflow

* Attempt to fix macOS unit-tests run

* Use axmol run to run unit-tests

* Skip launch when desktop cpu mismatch

* Skip launch when desktop cpu mismatch

* Fix unit-tests crash on linux

* GitHub Action: divide osx arm64, x64 to differrent runner image

---------

Co-authored-by: Deal <halx99@live.com>
2024-05-01 22:24:53 +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
halx99 3e3628f1b3 Improve axmol run, add opiton: -wait to support run console app 2024-05-01 10:47:38 +08:00
halx99 d69fdfd038 Fix unit-tests working directory on vs debugger 2024-05-01 02:16:53 +08:00
halx99 d50b7aad0b Improve AXGLSLCC for winrt 2024-05-01 01:16:51 +08:00
smilediver dadd5fe983
Fix `unit-tests` build on macOS and Linux (#1870) 2024-04-30 23:26:42 +08:00