Commit Graph

776 Commits

Author SHA1 Message Date
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
aismann 8175eb2ade
DrawNodeV2 0.94 (currently DrawNodeEx) (#2008) 2024-06-29 00:15:02 +08:00
halx99 ad051f353f
Update TLD to axmol.dev in sources (#1977) 2024-06-10 02:25:43 +08:00
RH 4e055d8e3d
Update spine README.md (#1975) 2024-06-09 19:05:28 +08:00
halx99 92143c0b67 Fix lua bindings 2024-06-08 01:06:46 +08:00
halx99 99b405e68c Update tolua config 2024-06-07 20:18:43 +08:00
halx99 8eeed46cfc
Add JobSystem support (#1968) 2024-06-07 00:33:01 +08:00
axmol-bot 5f4c08d46b
Committing luabindings for commit 66ca90c (#1959) 2024-06-04 00:08:04 +08:00
axmol-bot 43d755f1ed
Committing luabindings for commit eee37e5 (#1941) 2024-05-30 20:55:05 +08:00
Purple eb0e6ef50d
Added glyph ranges manager for ImGuiPresenter, added ability to use glyph ranges for Inspector's font (#1936)
* Added glyph manager for ImGuiPresenter

* renamed glyph ranges constants

* for static code conduct

* for code of conduct 2

* removed some duplication and better format

* removed extra space
2024-05-29 23:56:03 +08:00
Purple d826793cd0
Add ability to change Inspector's font size (#1932) 2024-05-27 08:55:35 +08:00
halx99 905fce52d0
Release 2.1.3 (#1925)
* Update CHANGELOG.md

* Update publish.ps1

* Enable lua bit module for all lua versions supported by axmol

* Fixup

* Enable build lua-tests on gh ci

* Update ChangeLog

* Update CHANGELOG.md

* updUpdate 1kdist to v86
2024-05-26 12:53:08 +08:00
RH db1b022128
Fix crash due to invalid pointer (#1920) 2024-05-23 01:25:59 +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 c07139544b Update imgui to 1.90.6 2024-05-19 01:42:48 +08:00
axmol-bot beb873ea2a
Committing luabindings for commit 49bd2bc (#1900) 2024-05-16 21:49:22 +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
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 33c328e910 Update luabinding: ax::Ref ==> ax::Object 2024-05-05 00:34:51 +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 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
Deal aed58e6c28
Cleanup cc stubs (#1847)
* Cleanup cc stubs

1. Rename ax::ccMessageBox to ax::messageBox
2. Remove unused API: ax::LuaLog
3. Move ax::ccNextPOT to ax::utils::nextPOT

* Improve code style [skip ci]
2024-04-25 00:51:00 +08:00
axmol-bot 96101ffe97
Committing luabindings for commit 16cb4b5 (#1846) 2024-04-23 22:54:44 +08:00
tkzcfc 16cb4b5e9d
When loading csb files, prevent repeated loading of plist files (#1844)
* When loading csb files, prevent repeated loading of plist files

* Add more feature

* Rename function

* Use isSpriteFramesWithFileLoaded to determine whether the atlas is loaded

* use string_view instead of string

* Update SpriteFrameCache.cpp

* Fix compilation error
2024-04-23 21:21:53 +08:00
Deal 74612ef296
Remove deprecated pixel formats L8, A8, LA8 (#1839)
* Remove deprecated pixel formats

* Fix ci

* Fixup [skip ci]

* Fixup [skip ci]

* Update tests [skip ci]
2024-04-20 22:29:16 +08:00
halx99 18a2c9bdba Fix warnings 2024-04-18 23:34:09 +08:00
smilediver 74c6a4a417
Fix same uniforms in fragment and vertex shaders not working in Metal (#1808)
* Fix same uniforms in fragment and vertex shaders not working in Metal

* Add missing copyright

* Fix lua bindings for UniformLocation conversion

* Fix uniform mismatch in positionNormalTexture.vert and colorNormalTexture.frag

* Enable ProgramState::setFragmentUniform() only for Metal
2024-04-12 23:12:51 +08:00
halx99 a0f2c4e489 Add cmake option: `AX_EXT_HINT` to set default extensions state 2024-04-11 22:23:02 +08:00
halx99 9872818890 Fix typo: BLEND_CLOLOR ==> BLEND_COLOR 2024-04-10 21:47:00 +08:00
halx99 2ccdb3dbcd Fix typo: RESERVE_SUBTRACT ==> REVERSE_SUBTRACT 2024-04-10 21:45:48 +08:00
halx99 60c4f6c340 Fix win32 link error
attention linux: the libaxmol.a must first link library, otherwise will cause
link error.
2024-04-08 21:52:50 +08:00
halx99 1fdacfd45a Fix android lua build 2024-04-08 02:15:33 +08:00
halx99 56fb742c32 Fix linux lua link error 2024-04-08 02:10:31 +08:00
halx99 6d8eda761a Fix compile warnings 2024-04-06 23:42:51 +08:00
axmol-bot 544bd14d96
Committing luabindings for commit bf7635f (#1789)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-04-05 16:06:34 +08:00
halx99 0a93419e4b Improve code style 2024-04-03 20:28:20 +08:00
halx99 ddf4e8e38a Fix lua_downloader memory leak 2024-03-30 23:46:33 +08:00
RH 690e16df30
Use single macro to control each feature (#1776)
* Use single macro to control each feature

* Allow Physics module to be enabled or disabled via cmake option
2024-03-30 08:56:32 +08:00
halx99 2ea963cb07 Update flatbuffers: 2.0.8 ==> 24.3.25 2024-03-30 01:11:22 +08:00
axmol-bot 1de0e166b1
Committing luabindings for commit 07f47c1 (#1773)
* Committing luabindings for commit 07f47c1

* Check lua-tests on linux ci

---------

Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-03-28 21:07:51 +08:00
halx99 3555f97a7b Fix ci 2024-03-24 05:20:59 +08:00
aismann 6f8f354ea8
Adapt DrawNodeEx to the changes on: Move color types to math/Color.h axmolengine#1741 (#1760) 2024-03-21 23:39:31 +08:00
halx99 d1ec623bb5 Rename folder thirdparty ==> 3rdparty 2024-03-19 21:33:02 +08:00
宾晓皎 3b8d8d987f
fix InputEvent in fairyGUI onKeyDown and onKeyUp (#1757) 2024-03-17 21:59:45 +08:00
axmol-bot c5e0e9f90c
Committing luabindings for commit 45d302c (#1748)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-03-15 22:55:08 +08:00
axmol-bot 18ebac4909
Committing luabindings for commit 00ae3ce (#1742) 2024-03-15 09:31:33 +08:00
Deal 76db9007b0
Move color types to math/Color.h (#1741)
* Move color types to math/Color.h

* Use V3F_C4F

* Fix ci
2024-03-14 23:38:45 +08:00