Commit Graph

17 Commits

Author SHA1 Message Date
James Chen 131fb74b32 Fix the parameter of TextureCube::setImage, support to pass nullptr to it, keep the same logic as which in web (#12062) 2022-07-20 11:09:24 +08:00
James Chen 34f4c1c2eb Fix typo of TextureCube::setMipmapAtlas and update property binding in tojs/assets.ini (#12016) 2022-07-15 16:10:33 +08:00
黄森斌 67e9aa1f33 V3.6.0 allow multiple custom scripts exist in project with one same className (#11763)
* use getClassById instead of _getClassById

* use getClassId instead of _getClassId

* public cc.js.getClassId api

* allow className already exists, new one will replace old classObject

* create component use cid

* allow className exist when registing

* custom script className allow duplicated

* revert some comments

* preserve api and deprecate _getClassById and _getClassId

* revert some comments

* revert comment

* Update cocos/core/utils/js-typed.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-07-05 15:19:56 +08:00
徐兵 5e8f4a2e58 convolution map (#11322)
* upload mipmap from atlas

* add macro "USE_CONVOLUTION_MAP" and editable skybox material for native engine

* code format

* rename "USE_CONVOLUTION_MAP" and  enum MipmapBakeMode, delete the mipmapMode property

* rename struct

* rename useOfflineMipmaps function

* rename function and fix macro 'CC_USE_IBL'  'CC_USE_DIFFUSEMAP'  'CC_USE_HDR' not working

* fix compile errors

* add documentation

* update documentation

* USE_RGBE_CUBEMAP macro changed to global
2022-06-08 12:10:06 +08:00
James Chen 024737aebc fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant (#11197)
* Move Any.h/Optional.h/Variant.h to base/std and rename them to lowercase.

* fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant

* Format code.
2022-05-24 18:47:16 +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
minggo f2eb3c795c sync ts logic to c++ after merging v3.5 to v3.6 (#10881) 2022-04-27 11:07:35 +08:00
minggo 444bfe31c4 Refactor CC_NEW/CC_DELETE (#10810)
* replace CC_NEW/CC_DELETE with ccnew/delete
2022-04-21 16:39:34 +08:00
minggo e849e9cd7e fix compiling and crash error 2022-03-31 14:21:06 +08:00
minggo 7f4cb9e3b1 Remove string (#10469)
* replace std::string with ccstd::string
2022-03-24 11:53:10 +08:00
bofeng-song 5771fecc66 fix wrong logic (#10460) 2022-03-23 16:36:54 +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
mmyduckx ad947efe3a add forward declaration for asset&core (#10072) 2022-02-11 14:27:33 +08:00
bofeng-song 0952f8f838 fix todo (#4225)
* fix todo
2022-01-26 17:54:27 +08:00
James Chen f6f59892af Refactor IntrusivePtr, remove reinterpret_cast (#4221)
* Refactor IntrusivePtr, remove reinterpret_cast
2022-01-26 11:57:02 +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