Commit Graph

3279 Commits

Author SHA1 Message Date
iAndyHD3 aca00138c1 handle cxxabi correctly (fix windows clang) (#1325) 2023-09-12 07:06:04 +08:00
Deal 1617380ddd Bump version 2.0.1 [skip ci][skip appveyor] 2023-09-12 01:18:37 +08:00
halx99 f2470b99aa Android: Update AGP to 8.1.1
- jdk-17.x+ required
- gradle-bin 8.3
- Build-Tools 33.0.1
-  Delete package name from AndroidManifest.xml
- Add namespace "org.axmol.xxx" in 'app/build.gradle'
- Rename compileSdkVersion ==> compileSdk in 'app/build.gradle'
- Use rootProject.layout.buildDirectory instead rootProject.buildDir
- Android Studio 2022.3.1+
2023-09-12 01:13:06 +08:00
iAndyHD3 810c909e67 Add extension Inspector (Experimental) (#1324)
* node explorer

* fix some crash, add to tests

* change tabs to spaces

* remove node explorer from hello template

* change name to Inspector + add readme

* minor fix

* fix minor things

* fix minor thing...

* fix build on ios, android

* Apply suggestions from code review

* fix typename for gcc/clang, add font

* include cxxabi outside ax namespace
2023-09-12 01:06:28 +08:00
halx99 b2f814b308 Don't display WASM HelloLua [skip appveyor] 2023-09-11 23:34:24 +08:00
halx99 64e20d775b WASM: Don't build HelloLua due to appveyor limits 2023-09-11 23:27:52 +08:00
Deal e55134afb7 Update build-site.ps1 [skip appveyor] 2023-09-11 21:05:30 +08:00
halx99 d2a8fa00cd Improve isolated site dist[skip appveyor] 2023-09-11 20:43:27 +08:00
halx99 5bf03c47ac Build more tests for wasm 2023-09-11 20:31:57 +08:00
halx99 aa12c467f4 Redirect wasm preview site 2023-09-11 20:01:56 +08:00
halx99 dc1ac3cef2 Fix lua framework code not embed to wasm vfs 2023-09-11 19:43:49 +08:00
halx99 be1d49b86d Fix 'axmol new' not support absolute path 2023-09-11 19:41:49 +08:00
halx99 c1e36226ff Fix to UI touch location for ImGui on Android 2023-09-11 19:39:41 +08:00
halx99 8b96ff7f1b Tidy platform macros/consts value 2023-09-11 19:37:49 +08:00
halx99 6856c2d073 Committing genbindings changes 2023-09-11 03:15:48 +00:00
halx99 dcc79a8ade Don't export GLViewImpl::loadGLES2 to lua 2023-09-11 11:07:01 +08:00
halx99 f8b4783768 Committing genbindings changes 2023-09-10 16:38:28 +00:00
halx99 f8dcacceb3 Fix genbindings ci 2023-09-11 00:30:52 +08:00
halx99 0e23f9812f GLView: Restore from maximized when setWindowed 2023-09-11 00:06:34 +08:00
halx99 2db687b422 Enable dpi scale for ImGuiTest 2023-09-11 00:05:53 +08:00
halx99 c9fdb2e5a8 Run CI on dev branch only 2023-09-10 23:35:01 +08:00
Deal 659f2a744c Update ImGui README.md [skip ci][skip appveyor] 2023-09-10 23:03:32 +08:00
halx99 25da753b7c Improve ImGui Loop management
Properly remove ImLoop to avoid assert fail when there a one or more
viewports window at outside of game view
2023-09-10 22:38:54 +08:00
halx99 b8f069612e Bump v2.0.0 2023-09-09 10:20:39 +08:00
Deal 13bdda57fb Update DevSetup.md [skip ci][skip appveyor] 2023-09-09 09:59:17 +08:00
Deal 9031e99552 Update DevSetup.md [skip ci][skip appveyor] 2023-09-09 09:58:08 +08:00
Deal f17cad45a0 Update AXLinkHelpers.cmake 2023-09-09 01:52:32 +08:00
halx99 19d9f6fb4a Update readme files[skip ci][skip appveyor] 2023-09-09 01:07:47 +08:00
halx99 766d79a73f Revert cmake module folder to `cmake/Modules` 2023-09-09 00:36:49 +08:00
halx99 b834d0af5e Update CHANGELOG [skip ci][skip appveyor] 2023-09-08 22:50:44 +08:00
halx99 0ee62cb395 Update console prompt [skip ci][skip appveyor] 2023-09-08 22:05:16 +08:00
halx99 3b9a3529ed Fix install-pwsh on macOS 2023-09-08 16:13:46 +08:00
halx99 946edb3a70 No need to copy build.ps1 to new project
Because the console next commands is more easy to use, for example:

axmol build -p win32
axmol build -p ios
2023-09-07 22:39:15 +08:00
halx99 f8b796a7f9 Add API Director::getNextScene
Gets the top(next) scene which will going to running state.
2023-09-07 21:57:41 +08:00
halx99 45cb0d82dc Add cmake option 'AX_WASM_SHELL_FILE'
Specify the wasm shell file, by default use
`${_AX_ROOT}/core/platform/wasm/shell_minimal.html`
2023-09-07 21:09:36 +08:00
halx99 c7ab6a227e Processing wasm touch events properly 2023-09-07 19:32:06 +08:00
Deal bb4c08a7d8 Update GLViewImpl-desktop.cpp
wasm not support config vsync
2023-09-07 00:49:53 +08:00
halx99 cec4c3a560 ImGui: Clear emscripten's MouseWheel callback before shutdown.
refer: https://github.com/ocornut/imgui/pull/6790
2023-09-06 19:15:05 +08:00
halx99 d965dc42cd Improve 1k/build1k.ps1 2023-09-06 12:36:24 +08:00
halx99 c2bec92bc0 Improve console/axmol.ps1 [skip ci] [skip appveyor] 2023-09-06 12:23:33 +08:00
halx99 8cbe447974 Fix ci 2023-09-06 11:14:11 +08:00
halx99 0f21f4d85f Enable audio thread pool when wasm pthread enabled 2023-09-06 10:22:22 +08:00
halx99 0c42b9370b Enable more tests for wasm
- box2d test beds
- chipmunk test beds
2023-09-06 10:11:48 +08:00
halx99 3fa70d602b Improve wasm thread control by cmake option: AX_WASM_THREADS
- AX_WASM_THREADS: specify wasm thread count, valid value: number: `>=0` , string: must be: `auto` or `navigator.hardwareConcurrency`,
- number: explicit set thread count, `0` means disable wasm thread support
- string:
- `navigator.hardwareConcurrency`: will be emitted in the JS code which will use the number of cores the browser reports
- `auto`: Use cmake to detect host processor count
default is: `navigator.hardwareConcurrency`
2023-09-06 09:52:39 +08:00
halx99 68c51d64ba Disable wasm pthread for gh pages
gh-pages doesn't support thread
2023-09-06 00:47:43 +08:00
halx99 d7a72ea587 WASM: Fix .html file not generated 2023-09-05 22:40:25 +08:00
halx99 5a528b46e5 WASM: use shorten target platform name 'wasm' instead 'emscripten'
For examples:
- win32 app build by msvc/clang and runs on windows
- wasm app build by emscripten/emcc and runs on web browsers
2023-09-05 22:17:18 +08:00
halx99 f77174e3ed wasm: Dont use sourcemap, just leave cmake default -g
1. build debug: .\build.ps1 -p wasm -xb '--target','cpp_tests','--config','Debug'
2. Use chrome extension: C/C++ DevTools Support (DWARF) to debug c++ code, blog: https://developer.chrome.com/blog/wasm-debugging-2020/
2023-09-05 21:41:32 +08:00
halx99 0a56810af5 Improve wasm support
- Enable thread support
- Improve emcc flags
- Enable webp support
- axmol run now support wasm by emrun
- Rebuild openssl by pthread support
- Extension: effekseer support
2023-09-05 21:10:25 +08:00
halx99 a4682dc4da Fix wasm HttpClient not working 2023-09-04 22:16:56 +08:00