Commit Graph

261 Commits

Author SHA1 Message Date
zhakesi 49f92e3225 fix spine with a mask effect not work (#15052) 2023-05-17 16:17:06 +08:00
minggo 313c58fe33 Improve utils api doc (#13922) 2022-12-28 15:04:56 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo bfeca12a09 Merge branch 'v3.6.3' into merge-v3.6.3 2022-12-21 17:26:22 +08:00
zhakesi 1bc1be3b15 fix spine cached color format (#13557)
* fix spine cached color format

* fix code style
2022-12-09 14:22:24 +08:00
zhakesi d79b84d41c fix dragonbones in editor running with native engine (#13754)
* fix dragonbones in editor running with native engine

* add native ccfactory function getDragonBonesDataByUUID
2022-12-09 11:04:21 +08:00
zhakesi 4551b690a2 fix 2d module mesh buffer indices out of range (#13715)
* fix 2d module mesh buffer indices out of range

* use resize instead of checkSpace
2022-12-08 16:35:49 +08:00
江战 046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +08:00
minggo 5b88e5121d Merge branch 'v3.6.3' into merge_v3.6.3 2022-11-23 16:19:25 +08:00
zhakesi af81f8b553 fix beginSchedule when spine component with no onEnable called. (#13279)
* fix beginSchedule when spine component with no onEnable called.

* fix dragonbones beginSchedule
2022-11-23 13:36:36 +08:00
zhakesi 011a71f732 optimize spine/dragonbones material update (#13416)
* optimize spine/dragonbones material update

* add material assets depends for dragonbones
2022-11-18 10:15:40 +08:00
zhakesi 0985cbe03e fix spine/dragonbones begin-schedule (#13370)
* fix beginSchedule when spine component with no onEnable called.

* fix dragonbones beginSchedule
2022-11-18 10:12:51 +08:00
zhakesi 91031c7dad fix release spine/dragonbones resouce (#13419) 2022-11-18 10:10:16 +08:00
江战 280fd976bc Add EventTarget & EventBus (#13100) 2022-10-28 15:44:33 +08:00
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
zhakesi 3b3facf730 fix a native middleware blend problem (#12914) 2022-09-27 19:04:22 +08:00
zhakesi 0db6cc04db add a comment for readAttachment (#12902) 2022-09-27 10:39:19 +08:00
zhakesi 993fd74c64 fix binary format spine load crash (#12894) 2022-09-27 10:14:55 +08:00
zhakesi a7a924a6ed fix tiled merge draw call with sprite (#12877) 2022-09-26 10:36:24 +08:00
zhakesi c7761e5c19 middleware2d components rendering in native mode (#12788)
* middleware2d components rendering in native mode

* support spine/dragonbones set enable batch

* support spine rendering in batching mode

* get batcher2d instance from root

* process about with type conversion

* fix some code style

* use material hash to merge draw batch

* deal with fill z

* fix dragonbones fill z

* remove some code no used any more

* refactoring some code

* modify some code

* add free memory

* fix clang-tidy

* delete mesh-buffer-layout in destructor

* byte alignment
2022-09-20 13:31:33 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
zhakesi a388541901 spine/dragonbones renderdata use rgba8 color format (#12619)
* add color4b format

* render-2d adapter color format

* spine dragonbones use simple color

* rename V3F_T2F_C4B

* use attributes to init mesh buffer

* remove Vertex2DFormat
2022-09-01 21:44:19 +08:00
timlyeee 12ab61220b Remove script engine hook registers in MeshBuffer.cpp/SharedBufferManager.cpp/TypedArrayPool.cpp (#12298) 2022-08-30 11:50:24 +08:00
James Chen c7e60d2bcb Use swig to generate js bindings (#12410) 2022-08-16 10:48:12 +08:00
minggo 5778aab354 Merge branch 'v3.6.0' into merge_v3.6 2022-08-08 10:49:46 +08:00
zhakesi dc91a469ae use native middleware buffer (#12233)
* use native middleware buffer

* fix clang-tidy

* fix clang-tidy

* set useLinkData as meshBuffer's property

* refactoring some code

* set 2d.ini

* fix word component

* fix clip middleware2d

* ...

* function attributes to getAttributes
2022-07-28 19:00:30 +08:00
James Chen 58a6059e0c Fix spine memory leak when restarting game and fix memory leaks in js_se_setExceptionCallback and nativevalue_to_se(const cc::Data &from, ...) (#12206)
* Fix spine memory leak when restarting game.

* Fix memory leaks in js_se_setExceptionCallback and nativevalue_to_se(const cc::Data &from, ...)

* Cleanup all hooks after 'AfterCleanupHookArray' is executed since user may add hooks in 'AfterCleanupHook' by mistake.
For example which in SharedBufferManager::afterCleanupHandle.

* Fix a memory leak in `operator=(TypedArrayTemp &&o)

* Fix spine memory leak, use PersistentHandleVisitor to iterate JSB objects in Object::cleanup.

* Update Class.cpp, use only one internal field.

* Remove JSB mapping in visitor callback.
2022-07-28 15:17:44 +08:00
minggo f3ed70bc44 Merge pull request #12192 from minggo/merge_v3.6
Merge v3.6
2022-07-28 11:53:21 +08:00
江战 c32ba5d38c fix include order & revert boost/hash (#12212) 2022-07-27 13:46:01 +08:00
James Chen d553ce2bdb [v3.6.0] Fix memory leaks (#12185) 2022-07-26 18:01:53 +08:00
minggo e0bfd1d380 Merge branch 'v3.6.0' into merge_v3.6 2022-07-26 12:01:26 +08:00
zhakesi e18e900162 support spine/dragonbones use local native batcher2d (#12141)
* support spine/dragonbones use local native batcher2d

* avoid tiled map use local

* render-entity add set use local

* modify some code

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-22 12:54:15 +08:00
James Chen ab733d5644 [v3.6.0] Fix some potential memory issues (#12045)
* Fix deleting IntrusivePtr _pipeline object in Rot.cpp.

* Remove unused code.

* Avoid nullptr dereference in SceneCulling.cpp

* Fix memory leaks for some objective-c code.

* [dragonbones] Avoid extra memory allocation and copy in CCFactory.cpp

* [dragonbones] DragonBonesData::binary needed to be 'freed' rather than 'delete'd.

* [dragonbones] Fix using delete to release memory allocated by 'new[]' in SlotColorTimelineState.

* Remove variable srcOffset & dstOffset in Mesh::merge
2022-07-18 16:39:26 +08:00
minggo d40b8739bc Merge branch 'v3.6.0' into develop_merge_v3.6 2022-07-18 10:38:14 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +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
zhakesi 89621a8084 optimize spine use local mode in native (#11225)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-29 13:46:05 +08:00
zhakesi 0065242d91 fix dragonbone animation stop function with paramter null (#11241)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-05-29 13:41:33 +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 cd48cf7106 Replace CCASSERT with CC_ASSERT (#10682)
* replace CCASSERT with CC_ASSEERT
2022-04-10 16:03:46 +08:00
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
Cocos Robot d3b752a2cd [ci skip][AUTO]: Automated clang-format update: e59d6899c77798ee22b464ef7f9f43853bcd2fd8 (#10427) (#10441)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-22 15:55:36 +08:00
minggo 2379892c02 Unify stl (#10427)
* replace std::deque and std::queue
* replace std::unordered_set
* replace std::queue, std::deque and std::unordered_set
2022-03-22 14:00:36 +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
kenshin c374ef59de fix spine rendering confusion (#10348)
Re: cocos/2d-tasks#3621

Changelog:

Fix incorrect parsing of JSON boolean value.
Skips rendering slots without active bones .
2022-03-17 17:35:32 +08:00
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
minggo 164d4ccc14 Rename Vector and Map (#10206)
* Vector -> RefVector
* Map -> RefMap
2022-03-02 09:56:38 +08:00
Cocos Robot 6d4a51fbe7 [ci skip][AUTO]: Automated clang-format update: 678436827a04f45a277fa8ccc5e05ea9acec73b0 (#10172) (#10197)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-02-28 11:03:21 +08:00
minggo 6b89ccc3d0 fix spine binary data read issue. (#10172) 2022-02-28 10:45:09 +08:00