halx99
8b33156e65
Update glfw to 3.4
2024-02-24 14:17:31 +08:00
RH
184e0dcc74
Allow overriding defines without modifying engine source ( #1710 )
2024-02-21 09:40:04 +08:00
Deal
31da0f2917
Improve dll support ( #1706 )
...
* Improve dll support
* Tidy header include path
* Fix android build & symbol dup issue
* Fix android compile error
* Fixup
2024-02-20 05:37:12 +08:00
Deal
adbffdf4a2
Fix #1704 , control android cmake options by engine axutils.gradle ( #1705 )
2024-02-20 00:58:47 +08:00
j-jorge
628574c905
Remove the Enhance API. ( #1690 )
...
We don't have the source for it anyway.
2024-02-19 10:39:26 +08:00
Lich
8e2e577e2f
Add support for window close button calback ( #1697 )
2024-02-18 16:08:53 +08:00
halx99
6477a8fdb4
Improve naming style
2024-02-18 10:30:11 +08:00
Deal
2d9c6dbf90
Fix view size incorrect when frameZoomFactor not 1.0 ( #1694 )
...
* Fix view size incorrect when frameZoomFactor not 1.0
* Tidy code
2024-02-18 09:25:28 +08:00
Deal
cd5a39ee3b
Fix screen size incorrect in retina display ( #1692 )
2024-02-17 13:38:27 +08:00
RH
bee2d6222d
Trim leading and trailing whitespace characters for the HTML parsing option ( #1687 )
2024-02-15 14:51:42 +08:00
RH
d117232769
Ensure correct video mode is set when creating view to avoid incorrect refresh rate being applied ( #1678 )
2024-02-13 21:10:41 +08:00
j-jorge
583dcdc111
Use different global names and #undef the #defines to stay unity build friendly. ( #1653 )
2024-02-06 07:39:54 +08:00
halx99
e278e45ab8
Fix ci
2024-02-02 00:42:42 +08:00
Deal
9774d4751c
Fix memory leaks refreshed ( #1638 )
...
* Fix memory leaks when axmol apps exit on non-embed systems
1. DriverBase no destroyInstance
2. Every object inherited from ax::Ref shoud destory before ScriptEngineManager, otherwise will trigger it's reinit and leak
3. QuadCommand always leak isolated indices
4. static singleton should'nt inhert from ax::Ref due to destory it before ScriptEngineManager impossible
5. Make Director don't inherit from ax::Ref due to it also cause ScriptEngineManager re-init, because we destroy ScriptEngineManger in destructor of Director
6. Explicit Director managed by Application and don't delete self at purgeDirector, since it will release at mainLoop and re-init in glView->pollEvents then leak
7. Rename ApplicationProtocol to ApplicationBase
8. Rename purgeDirector since we don't delete director self at it, maye rename to cleanup
9. Change ShaderCache to new/delete singleton, managed by ProgramManager
---------
Co-authored-by: lich426 <lich426@gmail.com>
2024-01-29 22:30:14 +08:00
halx99
c06bed508b
Rename cocos_android_app_init to axmol_android_app_init and othre code cleanup
2024-01-29 08:51:35 +08:00
罗捷捷
e412419425
Move FileUtils::fullPathForDirectory to public ( #1596 )
2024-01-11 12:42:00 +08:00
suleiman rabiei
d69aa07a24
Fix crash with view nullcheck ( #1540 )
2023-12-24 19:40:09 +08:00
halx99
ef40b03c87
Delete unused win32/compat/stdint.h
2023-12-18 23:12:47 +08:00
halx99
993b7f54c2
Improve win32 timer resolution control
2023-12-16 00:45:54 +08:00
Deal
b88c28013c
GLES3: Fix scalar array layout ( #1523 )
2023-12-15 22:29:23 +08:00
RH
2b01fa2cb3
Make openFileStream a const method ( #1514 )
2023-12-14 01:51:15 +08:00
Lich
ae51e26eb6
Add support for window resized and positioned ( #1513 )
2023-12-14 01:48:52 +08:00
halx99
7864d8f6ec
Enable FPS control for winuwp
2023-12-14 01:46:41 +08:00
halx99
a6107139b6
Fix Device::getPixelRatio for win32,android
2023-12-13 01:56:53 +08:00
RH
baa9de1a5f
Call Android native renderer while opengl context is still valid ( #1504 )
2023-12-12 09:47:11 +08:00
halx99
206c7e3352
Fix mac Device::getPixelRatio incorrect
2023-12-12 00:45:34 +08:00
Deal
213f788f75
Merge backend Device, DeviceInfo to DriverBase ( #1499 )
...
* backend::Device ==> backend::DriverBase
* backend::DeviceInfo ==> backend::DriverBase
* code style: remove unnecessary virtual function marks
2023-12-11 21:59:25 +08:00
halx99
affcf05b69
Prepare 2.1.0 release
...
* Update copyright notice
* Remove prebuilt libs from SCM
* Remove optional thirdparty sources/repo from SCM
* Remove tests resources folder 'Content' from SCM
2023-12-08 01:04:43 +08:00
Paulo Coutinho
0aab228acc
Rename glview to correct representative name ( #1467 )
2023-12-01 09:04:51 +08:00
Deal
b062eb3dc2
Improve linux deps ( #1441 )
2023-11-19 09:38:12 +08:00
RH
4eb133bea7
[Android] Ensure AxmolEditBox used by TextField is visible prior to receiving focu ( #1429 )
2023-11-10 10:33:09 +08:00
RH
7d79c095bb
Add virtual file system support to WICImageLoader ( #1425 )
...
* Add virtual file system support to WICImageLoader
* Ensure supplied buffer pointers are not null
* Simplify conditional check to only not allow reads in WRITE file mode.
2023-11-08 21:56:51 +08:00
RH
2a650ba110
[UWP] Use Package to get app version information ( #1424 )
2023-11-08 08:16:28 +08: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
RH
589f046007
Make AxmolEditBox invisible by default. ( #1414 )
2023-11-01 20:49:38 +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
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
halx99
352f3ad420
Remark IFileStream::tell as `virtual`, refer #1366
2023-10-01 22:05:45 +08:00
Deal
b892461a2b
UWP: Migrating from C++/CX to C++/WinRT ( #1355 )
2023-09-26 00:11:33 +08:00
halx99
d03c31fb68
Fix #1332
2023-09-15 20:08:27 +08:00
halx99
58cfc7c65d
Make wasm devtools works
2023-09-15 19:33:25 +08:00
halx99
983e383077
Improve build script
2023-09-13 16:00:33 +08:00
halx99
b8baf0d1a8
Android: Allow use external cmake outside of android sdk
2023-09-12 19:32:20 +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
halx99
8b96ff7f1b
Tidy platform macros/consts value
2023-09-11 19:37:49 +08:00
halx99
0e23f9812f
GLView: Restore from maximized when setWindowed
2023-09-11 00:06:34 +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