Commit Graph

947 Commits

Author SHA1 Message Date
rh101 e1ce966be2 Remove redundant std::move 2021-04-23 22:00:33 +10:00
rh101 6502627714 Added getNativeWritableAbsolutePath() which will always return the underlying file system raw path.
Re-enabled memory mapped UserDefault usage, since it now has access to the raw file system path.
2021-04-23 01:00:00 +10:00
rh101 95cf5b5c2b Merge: 2aa2d69151 b7506fed0c
Merge branch 'vfs-support' of https://github.com/rh101/engine-x into vfs-support
2021-04-23 00:01:47 +10:00
rh101 54ffa13dff Move PosixFileStream class to its own files
Update UserDefault to work with FileStream
Fix undefined openFileStream on platforms other than Win32
2021-04-23 00:01:32 +10:00
RH dd5f77c3d5 Merge: 15c8f2298d 0886473e1b
Merge pull request #4 from rh101/master

Sync with master
2021-04-22 21:49:43 +10:00
RH 1e15ed4839 Merge: 2cef9f2e76 844119d162
Merge pull request #3 from c4games/master

Sync with master
2021-04-22 21:48:49 +10:00
rh101 7540c06fd3 Use FileStream to write JPG images to disk 2021-04-22 21:36:26 +10:00
halx99 6effb1642f Fix #339 [ci build] 2021-04-22 18:55:56 +08:00
halx99 8ed6d34234 Explicit set cmake minimum version at app/build.gradle [ci build] 2021-04-22 11:40:53 +08:00
rh101 57e2d5dea8 Fixed typo 2021-04-22 03:18:23 +10:00
rh101 2bf12b2226 Add support for virtual file system via custom FileStream and FileUtils implementations. 2021-04-22 03:15:49 +10:00
halx99 473e51cee7 Set cmake min version to 3.10 [ci build] 2021-04-21 14:05:44 +08:00
halx99 569edd09e1 Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 22:35:29 +08:00
halx99 96aea0ae6e Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 22:30:39 +08:00
halx99 3ea8e50d90 Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 21:39:42 +08:00
halx99 0c87f1d4ef Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 21:02:55 +08:00
halx99 92e0eff6df Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 20:58:09 +08:00
halx99 98152f235b Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 20:46:32 +08:00
halx99 76646692fc Use cmdline-tools instead sdk-tools [ci build] 2021-04-20 20:44:12 +08:00
halx99 e7f294adca Ensure build native first before compile java code
3ff5b16
2021-04-20 20:27:38 +08:00
halx99 c2596efd04 Ensure build native first before compile java code 2021-04-20 20:25:32 +08:00
halx99 e6467fac7b Refine somethings & improve command cocos python3 support [ci build]
a. Change android sdk root env var to `ANDROID_SDK`
b. Change android ndk root env var to `ANDROID_NDK`
2021-04-20 16:13:48 +08:00
halx99 366636e861 Update before-install.sh [ci build] 2021-04-08 23:32:34 +08:00
halx99 c14dafcbaa Update before-install.sh [ci build] 2021-04-08 23:28:46 +08:00
halx99 e05c59f7e1 Update before-install.sh [ci build] 2021-04-08 23:08:05 +08:00
halx99 1c2daaf4ae Set gradle-wrapper to 6.8.3 [ci build] 2021-04-08 22:42:15 +08:00
halx99 19ef72f788 Properly set gc mode for lua-5.4 [ci build] 2021-03-27 19:49:19 +08:00
halx99 2a10e85122 fix lua-tests cmake script 2021-03-26 17:10:37 +08:00
halx99 5488a8da20 Fix CMakeLists for separating test projects [ci build] 2021-03-15 09:50:32 +08:00
halx99 4f0f713977 Merge: 6a868299f5 9aebfd4b0d
Merge pull request #331 from c4games/cmake-improve

Improve cmake scripts
2021-03-13 18:46:32 +08:00
halx99 b8892e446b Merge: 91bfb7c8ff a5cf017e0f
Merge pull request #330 from c4games/lua54-compat

Lua 5.4 compatible
2021-03-13 18:46:13 +08:00
halx99 d7610b8c77 Improve cmake scripts
a. rename project 'plainluac' to 'luac'
b. add executable project 'lua'
c. unify cmake runtime directory to bin
2021-03-13 18:18:40 +08:00
halx99 261bea4234 Lua 5.4 compatible 2021-03-13 16:47:09 +08:00
halx99 fce0f9caf0 Refine director access [ci build] 2021-02-05 23:09:14 +08:00
halx99 327b4717fb Disable luajit compile for release build 2021-02-05 21:59:50 +08:00
halx99 9802f30aad Update LICENSE 2021-02-03 15:37:48 +08:00
halx99 6904b9f3f3 Fix depth stencil state/desc (#321)
* Fix ds state

* fix 3d object not render

* Update DepthStencilStateGL.cpp

* fix ds, not complete

* fix image ref incorrect

* Fix metal captureScreen

* Share ds desc
needs restore properly after non-default render target destroy.

* fix gl compile

* Sync ds desc

* Only set vertex & index buffer once for batch draw

* Add set/get ds desc for renderer

* Refine code style

* Fix RenderTextureTest
a. should restore stencil desc properly

* Sync gl captureNode

* Sync GL
2021-01-31 22:22:52 +08:00
halx99 472266c25c Fix #318 2021-01-27 12:03:42 +08:00
halx99 53bbf7368c Fix warnings 2021-01-26 19:00:04 +08:00
halx99 03e130a19f Revert "Fix #313" 2021-01-21 12:41:01 +08:00
halx99 be79c908c5 Fix ParticleBatchNode texture not bind [ci build] 2021-01-19 23:53:22 +08:00
halx99 734602069e Fix #313
a. error: depthAttachment PixelFormat (MTLPixelFormatInvalid) and stencilAttachment PixelFormat (MTLPixelFormat Depth32Float_Stencil8) must match.
b. Because we only support D24S8(D32FS8) combined format, so needs check
TargetBuffferFlags::DEPTH_AND_STENCIL when setup depth and stencil
format, otherwise newRenderPipelineWithDescriptor will crash.
2021-01-16 00:01:21 +08:00
halx99 757e7edbf7 lua api compatible 2021-01-09 18:32:22 +08:00
halx99 11ca0866e1 Update README.md 2020-12-29 21:48:02 +08:00
halx99 38e4053251 Update README.md 2020-12-29 20:55:12 +08:00
halx99 9cb8963ca3 Merge: aded15aac7 057642921b
Merge pull request #311 from aismann/master

Update controller.cpp
2020-12-21 22:19:29 +08:00
halx99 984c164c57 Sync yasio to 3.35.0 [ci build] 2020-12-21 18:12:13 +08:00
aismann f38b271650 Update controller.cpp
"Node: Physics" using Chipmunk2D (hardcoded on e.g.: CCPhysicsBody.cpp)

Maybe a Wiki entry is also usefull?
2020-12-20 07:11:13 +01:00
halx99 3ebb1f57c0 Fix next drawable maybe nil crash[ci build] (#310) 2020-12-17 15:31:16 +08:00
halx99 b92c3d30c4 Update lua bindings source [ci build]
cxx17::string_view support
2020-12-16 17:52:17 +08:00