Commit Graph

3366 Commits

Author SHA1 Message Date
RH 2a650ba110 [UWP] Use Package to get app version information (#1424) 2023-11-08 08:16:28 +08:00
RH 4b5dc59574 Fix for UWP build issues (#1421) 2023-11-08 08:15:40 +08:00
RH 344ed98d49 Allow accessing HTTP cookie when using virtual file system. (#1423) 2023-11-08 01:31:41 +08:00
Deal 7a89b54cd2 Fix axmol console uwp deploy [skip ci][skip appveyor] 2023-11-07 22:59:22 +08:00
CHP a9091c4127 upload-artifact for android build (#1419) 2023-11-06 09:32:53 +08:00
halx99 859c8fc093 Committing genbindings changes 2023-11-05 16:27:00 +00:00
Deal 54ef33d34d Add API: Device::getPixelRatio (#1418) 2023-11-06 00:19:44 +08:00
RH 6f00aed73f [Android] Enable support for restarting application process if OpenGL context is lost (#1409)
* Add code to allow app to restart cleanly.
Call native renderer before the sleep in onDrawFrame due to possibility of invalid texture data after delay.
Dispatch event if application process will be restarted.
Add AX_ENABLE_RESTART_APPLICATION_ON_CONTEXT_LOST configuration option. Disabled if AX_ENABLE_CACHE_TEXTURE_DATA is enabled.

* Add missing code for nativeOnContextLost

* Revert onDrawFrame change to commit in separate PR

* Fix activity reference
2023-11-02 19:41:41 +08:00
CHP fbf358b81c Update android.yml (#1416) 2023-11-01 23:35:39 +08:00
RH 589f046007 Make AxmolEditBox invisible by default. (#1414) 2023-11-01 20:49:38 +08:00
halx99 e383179ed9 Improve axmol console
- Force cast corss config & build paramer to array to avoid combine
with builtin parameters incorrect
- Use evaluated build target to run and deploy
2023-10-27 23:37:44 +08:00
RH ddcecc3ff4 Live2d Android build fix (#1407)
* Allow optional setting target link scope for extensions when linking with Axmol.

* Fix Live2D linking with Axmol on Android
Add Android Tegra shader processing and usage
2023-10-26 21:30:31 +08:00
RH 1f5f8c182a Update Live2D to work with Axmol 2.x (#1405)
* Ensure Live2D extension is enabled for Live2D test

* Update Live2D to work with Axmol 2.x

* [skip ci] Remove commented out shader code
2023-10-25 19:25:42 +08:00
halx99 ddc9256ebe Committing genbindings changes 2023-10-25 01:54:02 +00:00
RH e808fb9758 [Android] Fix corrupted FPS stats font textures on OpenGL context lost (#1402)
* Fix corrupted FPS stats font textures on OpenGL context lost

* Ensure _rendererRecreatedListener is recreated on a director restart.
2023-10-25 09:44:08 +08:00
RH cc3156e66e [Android] Reset the OpenGL state cache if the context is lost (#1401) 2023-10-25 09:35:58 +08:00
RH fc67e58646 Imgui and Inspector enhancements (#1396)
* [imgui] Add support for displaying images correctly that are rotated in texture atlas
[imgui] Add parameter to select if displayed image maintains aspect ratio
[imgui] Move static methods to anonymous namespace
[imgui] Minor code clean-up

* [imgui] Add support for displaying SpriteFrame

* [imgui] Update test to show usage of ImGuiPresenter::image helper methods

* [Inspector] Show image of selected sprite
2023-10-20 19:22:49 +08:00
halx99 4d91ed6ca3 Fix dll build, make JSONDefault as static library 2023-10-19 23:27:59 +08:00
RH c5512a05bc [Inspector] Fix crash and add enhancements (#1394)
* Fix crash related to invalid selected node if it no longer exists in the scene.
Support using a custom font for the inspector.
Support automatic registration of inspector on scene switches.

* Fix compilation issue

* [skip ci] Remove redundant null check
2023-10-19 15:31:01 +08:00
Saroop Technologies f2ae7f9759 Add JSONDefault extension (#1393) 2023-10-19 15:30:39 +08:00
RH 0bf5bed809 Add support for adding custom properties to the inspector (#1392)
Minor code clean-up
2023-10-18 20:11:59 +08:00
halx99 429f11fd1c Fix #1391 2023-10-17 23:23:57 +08:00
halx99 9a8bab9440 Fix #1388 2023-10-16 20:24:59 +08:00
halx99 4ccac3c21c Fix #1389 2023-10-16 20:24:38 +08:00
Deal 836b0ff7a7 Update DevSetup.md 2023-10-14 10:55:16 +08:00
halx99 de286831de Improve code style 2023-10-12 22:10:11 +08:00
Deal c2847f892e Use std containers instead uthash (#1379) 2023-10-12 22:00:46 +08:00
halx99 b9042aeb20 Add a dedicated class for easy load padded string for simdjson parser 2023-10-12 00:02:48 +08:00
halx99 022af2fac2 Improve prebuilt link cmake module 2023-10-11 21:42:01 +08:00
Deal 8841c801ec Improve build-site.ps1 2023-10-11 01:33:15 +08:00
halx99 fd9f613b50 Enable Mat4 SSE Istructions acceleration 2023-10-11 01:05:22 +08:00
halx99 1e0dde5ba2 Fix ci 2023-10-11 00:49:49 +08:00
halx99 13b4a5bc93 Make macro same with cmake in c++
- AX_ENABLE_EXT_SPINE
- AX_ENABLE_EXT_DRAGONBONES
- AX_ENABLE_MSEDGE_WEBVIEW2
2023-10-11 00:32:04 +08:00
halx99 f13cce5a3b Fix link prebuilt preprocessors 2023-10-11 00:27:46 +08:00
halx99 8165a7280e Remove parsing target from CMakeCache
it's not trustable
2023-10-10 23:17:37 +08:00
halx99 e17721d5bc Improve ObjLoader, avoid use temp buffer to token parse 2023-10-10 23:16:10 +08:00
halx99 9ef282c60f Fix link prebuilt incorrect msvc runtime 2023-10-10 22:10:35 +08:00
halx99 65e253b54a Fix wasm build 2023-10-10 22:01:09 +08:00
halx99 e3c1d28316 Fix #1381, improve cmake simd detection
Add cmake option `AX_ISA_LEVEL`

Note: we set default AX_ISA_LEVEL to 2 for sse4.1 for axmol app can runs on large amount devices
If you want axmol app runs on more old devices, you can specify in cmake cmdline `-DAX_ISA_LEVEL=1` or
`-DAX_ISA_LEVEL=0` to disable SIMD acceleration for thirdparty astcenc and webp
otherwise, host compiler generated instructions will crash on old devices which not support high level
SIMD instructions.
2023-10-09 01:33:41 +08:00
Joilnen 61bcb24a25 fix warning messages in gcc 13.2.1 to compliance with C++20 (#1383) 2023-10-08 23:46:27 +08:00
Deal 58221bbf2a Fix osx ci 2023-10-08 08:03:47 +08:00
halx99 dbb0dbcb79 Use JsonWriter for SDFGen 2023-10-08 02:28:08 +08:00
aismann 525c53b0b5 Update FastTMXLayer.cpp (see issue #1283) (#1285)
* Update FastTMXLayer.cpp

fix #1283

* Using local variable rather than doing two calls

* Fix #1336

* Fix ci

---------

Co-authored-by: eismpesd <peter.eismann@siemens-healthineers.com>
2023-10-07 20:36:48 +08:00
halx99 93c5e350b3 Fix build error when -DAX_USE_ALSOFT=ON on xcode14.3+ 2023-10-07 13:13:08 +08:00
Deal 94550d5c3f No need set ios simulator sysroot 2023-10-07 12:42:22 +08:00
halx99 734e3664e5 Fix #1378, refer to #1310 2023-10-07 12:36:33 +08:00
halx99 2305bfeced Update yasio to latest 2023-10-06 01:02:01 +08:00
RH 86ab2fe995 Fix undeclared identifier errors (#1370)
* Fix undeclared identifier errors

* Add IFileStream::Mode to the FileStream scope
2023-10-03 13:59:34 +08:00
Deal 5c1d7fbbfb Update DevSetup.md[skip ci][skip appveyor] 2023-10-03 12:05:33 +08:00
halx99 539f37651b Make Data::fastSet behavior compatible, refer #1369 2023-10-02 21:08:51 +08:00