Commit Graph

205 Commits

Author SHA1 Message Date
halx99 73c5f887b5 Merge: 30625f2330 f5af50debd
Merge pull request #475 from adxeproject/win64

Win64 build support [DONE] 馃殌馃帀
2021-08-27 12:34:24 +08:00
aismann 147b4b7946 Update README.md 2021-08-27 06:25:18 +02:00
halx99 5d0565b900 Fix byteorder detect error for win64 and some warnings 2021-08-27 11:27:33 +08:00
halx99 4b7e098e65 Improve code quality 2021-07-16 11:04:38 +08:00
halx99 a97ba886bf Rename everything to adxe 2021-07-09 10:42:36 +08:00
halx99 ed3a0d05ec Move GL macros to backend MacrosGL.h
a. Fix box2d-testbed crash on macos and ios
b. User should avoid use them at application
2021-07-07 13:52:56 +08:00
halx99 10c1ed15ef Refactor dual sampler shader [ci build]
Since not only etc1 could use sepreate RGB, A to two texture samplers, we unify the shader name.
2021-06-27 20:58:50 +08:00
halx99 e5237503fb Fix #386 [ci build] 2021-06-17 22:22:41 +08:00
halx99 123a6555c9 Fix android astc support check
glCompressedTexImage2D no error, regard the device support astc
2021-06-10 16:42:57 +08:00
halx99 c53038448d Fix android compile error [ci build] 2021-06-10 14:17:47 +08:00
halx99 705ddf323c Fix ci [ci build] 2021-06-10 12:55:58 +08:00
halx99 0d492c5f76 Use 1px detect method for checking whether GPU support astc [ci build] 2021-06-10 12:44:34 +08:00
halx99 d0bb2a38a2 Fix ci [ci build] 2021-05-28 16:43:32 +08:00
halx99 571f639f0b Use type GLchar for glGetShaderInfoLog 2021-05-27 14:52:09 +08:00
halx99 7d0395ee26 Fix #360 2021-05-27 14:39:17 +08: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 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 8ed6d34234 Explicit set cmake minimum version at app/build.gradle [ci build] 2021-04-22 11:40:53 +08:00
rh101 2bf12b2226 Add support for virtual file system via custom FileStream and FileUtils implementations. 2021-04-22 03:15:49 +10: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 03e130a19f Revert "Fix #313" 2021-01-21 12:41:01 +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 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 8b9d5db029 Unify CC_COMPAT_GL to control renderer backend
win32: google angle
mac: NSGL
ios: GLES
2020-12-02 03:03:05 -08:00
rh101 220ef7a6bf Allow user to set custom program type value 2020-11-27 17:26:02 +11:00
halx99 3f0d17b520 Merge: a10d7701b8 a606572775
Merge pull request #277 from aismann/master

Update cocos.bat
2020-11-23 01:27:53 -08:00
Eismann 381189f726 Update cocos.bat 2020-11-23 09:55:07 +01:00
halx99 a300b75a2f Merge: 0d04e20b50 eee60b9d99
Merge pull request #276 from aismann/master

Same as on 3.17 (with small changes)
2020-11-22 23:43:18 -08:00
Eismann b51545ac54 Same as on 3.17 (with small changes) 2020-11-23 07:46:09 +01:00
halx99 7122b5043a fix metal znear range for viewport
https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515527-setviewport?language=objc
2020-11-23 09:30:51 +08:00
halx99 1ec908d4f9 fix #260 [ci build] 2020-11-16 12:21:27 +08:00
halx99 1c1c8520b1 Delete unused buitin shaders 2020-11-16 11:20:12 +08:00
halx99 4a1bebd3e6 plain include xxhash.h 2020-11-14 12:22:51 +08:00
halx99 052558e83d Merge: 5da2894e1b f80a6ef25c
Merge branch 'master' of https://github.com/c4games/engine-x into master
2020-11-08 13:12:06 +08:00
halx99 c98313ac4b Prepre for box2d-2.4.1 2020-11-08 13:11:40 +08:00
halx99 73380fb4eb Update comment 2020-11-06 09:33:26 +08:00
halx99 17e1ddae83 [Metal] matching depth stencil state 2020-11-06 08:56:25 +08:00
halx99 fcaee3f0f9 fix #255 [ci build] 2020-11-05 22:51:33 +08:00
halx99 fefb5f27fb fix #255 [ci build] 2020-11-05 22:24:30 +08:00
halx99 5134ed69f0 Remove unused shader files [ci build] 2020-11-04 16:35:12 +08:00
halx99 a7e03fa49f For scripting binding happy 2020-11-02 16:35:31 +08:00
halx99 49b948af28 Improve memory use 2020-10-29 19:13:36 +08:00
halx99 4c05ca5004 fix compile 2020-10-27 17:01:03 +08:00
halx99 a060ef3bcb Use DeviceGL to store defaultFBO 2020-10-27 16:58:37 +08:00
halx99 2a4beb3ca4 DNT printmat by default 2020-10-27 11:21:03 +08:00
halx99 534b2acc39 Lock name 2020-10-24 21:57:36 +08:00