hyde zhou
3ad97c9879
turn off auto barrier ( #13369 )
2022-11-14 18:27:01 +08:00
江战
b157bb9454
Support to map multiple se objects with same address ( #13220 )
2022-11-14 18:12:59 +08:00
徐兵
b2b0d09e1d
reflection probe planar reflection for native engine ( #13281 )
2022-11-14 17:37:11 +08:00
Cocos Robot
bdaeef7e71
[ci skip][AUTO]: Automated code generating update: 7f81a38d8f84b876cd4d0a6423481d1cee72e4a4 ( #13360 ) ( #13365 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-14 17:26:33 +08:00
fqamic
71314f0e81
merge xr platform function codes ( #13360 )
...
* feat: add xr settings for xrEnv and xrType
* improve: remove redundant code for xr interaction
* improve: remove redundant code for frameMove
* fix: xr jsb bind adapt to swig
* feat: adapt to xr preview mode, add handle simulation event
2022-11-14 17:12:25 +08:00
Cocos Robot
3beed0199e
[ci skip][AUTO]: Automated code generating update: 1c29d75bc325698dc194714ea02c9fb1d7da8382 ( #13356 ) ( #13357 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-14 11:57:20 +08:00
James Chen
62d8b4daae
Remove unused swapWindow methods. ( #13356 )
...
The operation of swapping (presenting) buffers is done in gfx::Device::present. To swap multi-systemwindows, multiple gfx swapchains need be created, and relevant gfx backend will iterate each swapchain and present them. Therefore, `swap buffers` operation doesn't need to be in SystemWindow or SystemWindowManager.
```c++
void GLES3Device::present() {
CC_PROFILE(GLES3DevicePresent);
auto *queue = static_cast<GLES3Queue *>(_queue);
_numDrawCalls = queue->_numDrawCalls;
_numInstances = queue->_numInstances;
_numTriangles = queue->_numTriangles;
bool isGFXDeviceNeedsPresent = _xr ? _xr->isGFXDeviceNeedsPresent(_api) : true;
for (auto *swapchain : _swapchains) { // We iterate each swapchain and do the present thing here.
if (isGFXDeviceNeedsPresent) _gpuContext->present(swapchain);
}
if (_xr) _xr->postGFXDevicePresent(_api);
// Clear queue stats
queue->_numDrawCalls = 0;
queue->_numInstances = 0;
queue->_numTriangles = 0;
}
```
Besides, `SDL_GL_SwapWindow` invocation is doing nothing on Windows & Linux platforms, it will generate an SDL an error that `The specified window isn't an OpenGL window` because GL context is not created by SDL_GL_CreateContext. We create contexts in our gfx code.
https://github.com/libsdl-org/SDL/blob/main/src/video/SDL_video.c#L4192
```c++
#define NOT_AN_OPENGL_WINDOW "The specified window isn't an OpenGL window"
int
SDL_GL_SwapWindowWithResult(SDL_Window * window)
{
CHECK_WINDOW_MAGIC(window, -1);
if (!(window->flags & SDL_WINDOW_OPENGL)) {
return SDL_SetError(NOT_AN_OPENGL_WINDOW);
}
if (SDL_GL_GetCurrentWindow() != window) {
return SDL_SetError("The specified window has not been made current");
}
return _this->GL_SwapWindow(_this, window);
}
void
SDL_GL_SwapWindow(SDL_Window * window)
{
SDL_GL_SwapWindowWithResult(window);
}
```
Also, SDL_GL_SwapWindow could not take any effect if running on gfx Vulkan backend.
```c++
void SDLHelper::swapWindow(SDL_Window *window) {
SDL_GL_SwapWindow(window);
}
```
2022-11-14 11:46:58 +08:00
李吉林
7a32e653cb
remove component related code from native ( #13352 )
...
* remove component related code from native
2022-11-14 11:34:42 +08:00
jk20012001
652bf03964
Fix model updateInstancedAttribute binding ( #13348 )
2022-11-14 11:27:05 +08:00
Cocos Robot
49642f905e
[ci skip][AUTO]: Automated code generating update: a49ba79e5529f1b51483cb7fdfad619dee711964 ( #13209 ) ( #13354 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-14 10:49:52 +08:00
Yiwen
b0e9b0bda0
support fixed constraint ( #13209 )
...
* support fixed constraint
* fix typo
* fix typo
* add missing files, clean code
* update cocos/bullet version, remove unused file
* update package version
* update package lock
* fix issues
2022-11-14 10:15:45 +08:00
oahc09
3108c93e36
feat:add libxrcommon module ( #13346 )
2022-11-14 09:52:11 +08:00
Cocos Robot
34597ce385
[ci skip][AUTO]: Automated code generating update: 43ce5aed485fe6ab0884b83dec6b9d428a4b9b77 ( #13270 ) ( #13351 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-11 22:59:36 +08:00
hyde zhou
d33798f895
[develop] update native pipeline ( #13270 )
2022-11-11 22:51:31 +08:00
Ling Zhan
1aad162030
[fix] [physx-backend] Dynamically setting the convex property of the MeshCollider after rigid body generation has no effect #12048 ( #13312 )
2022-11-11 08:44:25 +08:00
李吉林
3d7beff293
support instancing for light probe ( #13324 )
2022-11-10 18:09:42 +08:00
Cocos Robot
8642fd7e2e
[ci skip][AUTO]: Automated code generating update: c25a2574b93d6805bfcb9d55f3aae08102335be7 ( #13317 ) ( #13320 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-10 16:23:51 +08:00
yangchao
22ed6f4c2f
force convert localstorge setitem value to string ( #13317 )
2022-11-10 16:15:30 +08:00
江战
9894dca7d6
fix bindings ( #13316 )
2022-11-10 16:11:24 +08:00
James Chen
5bf6be8694
[feature] se::Object supports to create and modify ES6 Map/Set ( #13275 )
2022-11-10 15:20:22 +08:00
Zeqiang Li
59e9b1335f
add renderer/vendor/device name for metal ( #13301 )
...
* add renderer/vendor/device name for metal
2022-11-10 13:49:15 +08:00
江战
376f0ca284
use std array to store event listeners ( #13283 )
...
* use std array to store event listeners
* fix offAll
* make code debuggable
* make code debuggable
* rename to DECLARE_TARGET_EVENT_BEGIN_WITH_PARENTS
2022-11-10 11:00:33 +08:00
James Chen
cf8675a949
fixed #13232 : [feature] Support to pass commandline arguments to JS ( #13268 )
...
* [feature] Support to pass arguments to execution file and export them to JS ( native.process.argv ) .
2022-11-10 09:47:28 +08:00
Yiwen
d34ce17a70
PhysX backend use SphericalJoint as its Point2point implementation. ( #13245 )
...
* use the correct joint type in PhysX backend
* update
2022-11-10 08:44:18 +08:00
Cocos Robot
161ccf1f8e
[ci skip][AUTO]: Automated code generating update: 838eaa1e5e07576c42b27ef25c7be6f2dff3e04c ( #13247 ) ( #13289 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-09 15:07:43 +08:00
oahc09
70b81a9d8c
[feature] xr remote preview ( #13247 )
...
* feat:add xr remote preview feature
send xr device's pose info to web browser or editor
* feat:add xr remote preview feature
* fix:clang tidy error
2022-11-09 15:02:12 +08:00
hyde zhou
60e0bff144
fix msvc NOMINMAX ( #13276 )
2022-11-09 13:32:20 +08:00
yangchao
1e0a0f219a
fix : jni api hidden on android release version ( #13267 )
2022-11-08 16:23:29 +08:00
GengineJS
b8dec5fe95
The clearCameras function of renderwindow removes destroy logic ( #13273 )
2022-11-08 16:22:54 +08:00
Cocos Robot
db2a12a2d0
[ci skip][AUTO]: Automated code generating update: 792aec0a9c57a6a1d2dc6b3a0f53d18df930937f ( #13158 ) ( #13269 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-08 13:26:31 +08:00
hyde zhou
87cff94d16
[develop] web-pipeline updated ( #13158 )
2022-11-08 12:48:30 +08:00
江战
db8c0dda7d
fix setWorldScale ( #12988 )
2022-11-08 11:05:26 +08:00
Cocos Robot
2ba47f986b
[ci skip][AUTO]: Automated code generating update: c9aeaa7b093416ccb733e14ebd96f02b47c3a9bb ( #13257 ) ( #13264 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-08 10:34:15 +08:00
Yiwen
214d6ac17f
add a new method to obtain the glTexture handle ( #13257 )
2022-11-08 10:28:48 +08:00
santy-wang
be5454309e
Merge branch 'develop' of github.com:cocos-creator/engine into develop
2022-11-07 15:30:11 +08:00
王凯鹏
7f7d85c9d7
Fix native engine bugs in editor ( #13242 )
2022-11-07 15:04:02 +08:00
santy-wang
a8913f5f16
Merge branch 'v3.6.2' of github.com:cocos-creator/engine into develop
2022-11-07 14:19:59 +08:00
Yiwen
23bae83dca
fix a bug in Native physics engine ( #13243 )
...
* fix a bug in Native physics engine
* add missing modifications
2022-11-04 17:17:05 +08:00
李吉林
809f3a8c36
light probe optimization the 2nd iteration ( #13235 )
2022-11-04 09:56:18 +08:00
bofeng-song
78889daf71
export lodGroups for native-editor ( #13225 )
2022-11-03 09:32:46 +08:00
Yiwen
d848935a07
Fix physics js binding configuration ( #13227 )
2022-11-02 21:50:54 +08:00
Cocos Robot
f71dd9db7f
[ci skip][AUTO]: Automated code generating update: 10e175cbcee9400cd6f76abc7ed947e625771130 ( #13205 ) ( #13210 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-11-02 09:48:56 +08:00
江战
6d0a32c7e9
include jsb_cocos_auto.h ( #13205 )
2022-11-02 09:42:57 +08:00
李吉林
5461e5490c
fix jsb error & undo error ( #13207 )
...
* fix jsb error & undo error
2022-11-01 19:03:17 +08:00
江战
68b82d663d
Add tests for event-system ( #13195 )
2022-11-01 14:43:21 +08:00
Zeqiang Li
b657754849
fix gfx-native-test ( #13187 )
2022-11-01 13:35:06 +08:00
江战
7ccd14e6e6
JSB export math class : Vec2/Vec3/Vec4/Quat/Mat3/Mat4/Color ( #12968 )
2022-10-31 17:24:54 +08:00
hyde zhou
7b35b3dcce
added default values ( #13175 )
2022-10-31 15:35:30 +08:00
徐兵
92f74f55b2
reflection probe texture binding ( #13168 )
2022-10-28 19:07:17 +08:00
bofeng-song
80415048df
native implement for LOD ( #13167 )
...
* native implement for LOD
2022-10-28 18:29:53 +08:00