James Chen
eb880e947c
Fix the bug of mathutils::approx always returns 1 ( #12168 )
2022-07-25 12:42:30 +08:00
James Chen
aba4cd8fa8
The input argument of Mat4::toRTS should be in the first order and const reference, output arguments should be pointer. ( #12172 )
2022-07-25 10:22:39 +08:00
江战
e7eeab9340
3.6 remove Mat4::transformVector for Vec3 ( #12088 )
...
* use Vec3::transformMat4 to replace Mat4::transformVector
2022-07-20 19:02:41 +08:00
江战
02655fa8fa
use cmath std::fabs instead of cstdlib std::abs ( #12075 )
2022-07-20 08:59:56 +08:00
James Chen
9a7204143f
Fix crash of spine test on Android, revert Mat4 and use enoki::load_unaligned in Vec3::transformMat4Neon ( #12076 )
2022-07-19 19:23:11 +08:00
James Chen
3025bcd012
[v3.6.0] Optimize se::Object::getPrivateData, math::IsEqualF, Vec3::transformMat4 ( #12039 )
2022-07-18 14:10:16 +08:00
江战
284642a129
copyout last component of vec4 ( #11920 )
2022-07-12 13:46:02 +08:00
James Chen
ba4a98a71c
Keep the struct in cc::Rect the same as which in ts ( #11864 )
...
Co-authored-by: Yiwen <15225434259xue@gmail.com >
2022-07-06 09:54:24 +08:00
minggo
3e818c45c9
Change macro name ( #11528 )
...
* CC_PLATFORM_MAC_IOS -> CC_PLATFORM_IOS
* CC_PLATFORM_MAC_OSX -> CC_PLATFORM_MACOS
* add codes to keep compatible
2022-06-16 14:05:16 +08:00
James Chen
8f8924c3f4
fixed #10929 : Hash computation in native engine causes loss of precision, use 32 bits hash for all platforms ( #11179 )
...
* fixed #10929 : Hash computation in native engine causes loss of precision. Force use 32 bits hash for all platforms.
* More uint64_t -> ccstd:hash_t
* Some uint64_t -> uint32_t in SkeletalAnimationUtils.h/.cpp
* operator() return ccstd::hash_t now and add some comments.
* size_t -> ccstd::hash_t in StringPool.h, Font.h/.cpp
2022-05-25 13:54:57 +08:00
minggo
271cc5cf23
Remove some format rule ( #10919 )
...
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
Cocos Robot
bff1fbe17d
[ci skip][AUTO]: Automated clang-format update: c7f0f9c103dd416e903eedda42bc1f3f9c5368cb ( #10682 ) ( #10717 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-04-11 11:11:30 +08:00
minggo
cd48cf7106
Replace CCASSERT with CC_ASSERT ( #10682 )
...
* replace CCASSERT with CC_ASSEERT
2022-04-10 16:03:46 +08:00
江战
e02b03ac4c
3.6 add linux ci ( #10636 )
...
* 3.6 add linux ci
2022-04-01 18:53:52 +08:00
Cocos Robot
df50878b14
[ci skip][AUTO]: Automated clang-format update: 735860a2aa285979c890bad6356b14afeff13db5 ( #10560 ) ( #10570 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-29 16:40:20 +08:00
minggo
1a9d49e4c6
replace std::list/std::array with ccstd::list/ccstd::array ( #10560 )
...
* replace std::list/std::array with ccstd::list/ccstd::array
2022-03-29 16:36:53 +08:00
Cocos Robot
a2df4e4dbd
[ci skip][AUTO]: Automated clang-format update: 771de57fc2c1edbaaf3ae94e77f9801b0379cc6c ( #10469 ) ( #10472 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-24 13:50:39 +08:00
minggo
7f4cb9e3b1
Remove string ( #10469 )
...
* replace std::string with ccstd::string
2022-03-24 11:53:10 +08:00
Cocos Robot
24d84664f8
[ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 ( #10402 ) ( #10424 )
...
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2022-03-21 16:04:49 +08:00
minggo
34bf14269c
unify stl ( #10402 )
...
* add ccstd::vector
* replace cc::vector with ccstd::vector
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
yangchao
8ceabc5f3f
Fix 3.6 linux compile ( #4166 )
...
* std::sinf not work on linux, if not c++17
2022-01-13 13:55:45 +08:00
minggo
5410a48a58
Implement more logic in native ( #4131 )
...
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com >
Co-authored-by: dumganhar <dumganhar@gmail.com >
Co-authored-by: mmyduckx <308303735@qq.com >
Co-authored-by: Patrice Jiang <397136899@qq.com >
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com >
2022-01-07 18:39:40 +08:00
minggo
ac7418f1c1
fix conflict
2021-11-30 10:48:30 +08:00
oahcy
5379e6ef35
引擎适配linux平台 ( #4035 )
2021-11-29 17:17:15 +08:00
Yun Hsiao Wu
dbcb157efb
misc gfx fixes ( #3991 )
...
* better hashing strat
* gfx: unify states hash
* vk: upload texture in multiple chunks if needed
* gfx: states lifecycle management
2021-10-19 14:14:46 +08:00
troublemaker52025
46976eff2d
Shadow culling for v3.3.1 ( #3810 )
2021-09-02 19:34:51 +08:00
minggo
aa522396a3
CC_INLINE to inline ( #3664 )
2021-06-28 16:41:13 +08:00
GengineJS
b8f54069c0
[Add] Native scene object update function ( #3638 )
2021-06-22 16:41:13 +08:00
minggo
c98a1251a0
Revert "[add] Native scene object update function ( #3602 )" ( #3634 )
...
This reverts commit 8cc944277f .
2021-06-18 18:12:50 +08:00
GengineJS
8cc944277f
[add] Native scene object update function ( #3602 )
2021-06-18 17:34:06 +08:00
cary
965037568c
Modify the memory pool and remove the deprecated code. ( #3599 )
2021-06-10 09:06:27 +08:00
cary
d77dbb3a53
implement scene management in native( #3584 )
2021-06-02 17:22:33 +08:00
minggo
5b6545941f
treat warning as error for math ( #3327 )
...
* treat warning as error for math
2021-03-18 15:51:39 +08:00
minggo
826babfa64
Format code ( #3217 )
2021-01-13 14:49:32 +08:00
minggo
affec13856
revert PR3076 ( #3118 )
2020-12-16 09:35:58 +08:00
troublemaker52025
e4454cb32e
fix metal shadow upside down ( #3076 )
2020-12-12 18:19:38 +08:00
troublemaker52025
bffaf3f395
Add spot light shadow for C++ ( #2978 )
2020-11-11 10:15:54 +08:00
troublemaker52025
60245af9bd
shadow sync to c++ ( #2942 )
2020-10-30 16:18:36 +08:00
Yun Hsiao Wu
fb791ad01b
discrete descriptor set layout bindings ( #2920 )
2020-10-20 15:06:57 +08:00
coulsonwang
b504111fee
sync native pipeline ( #2868 )
2020-10-12 15:55:02 +08:00
coulsonwang
ebb4670ce2
undef __SSE__ ( #2864 )
2020-09-30 17:29:01 +08:00
minggo
ee7e115afd
merge gfx/CoreMath into base/math ( #2822 )
2020-09-22 16:27:20 +08:00
coulsonwang
de380ae677
fix native pipeline ( #2734 )
2020-08-31 09:32:13 +08:00
minggo
b08407c501
remove CC/cc prefix for file names ( #2728 )
2020-08-28 15:23:29 +08:00
minggo
6a17148d40
use .cpp/.h for source file suffix ( #2654 )
2020-07-22 15:00:28 +08:00
minggo
7efee066fd
Remove duplicate ( #2597 )
2020-06-19 11:07:21 +08:00
minggo
d381a16142
change namespace from cocos2d to cc ( #2572 )
2020-06-16 14:34:46 +08:00
minggo
743f91a3a8
remove some unneed codes ( #2182 )
2020-02-25 18:33:41 +08:00
minggo
1bb0c717d0
fix macro redefine warning of platform defination ( #2099 )
2020-01-20 15:12:49 +08:00
cary
70a2134fb4
Fix the display error of the 3D node in the native platform. ( #1868 )
...
* Fix the display error of the 3D node in the native platform.
* Modify the matrix calculation of 3D nodes.
2019-10-12 11:29:48 +08:00