Commit Graph

855 Commits

Author SHA1 Message Date
halx99 4db339115e Fix #550, #484
Invoke AudioEngine::end before Director destroyed, because it hold scheduler belong Director.
2021-12-15 16:56:08 +08:00
halx99 9b45f839a1 Improve any_buffer code quality
a. Fix warnings: try delete void*
b. Only allow used by trivially_destructible types

Reported by @wzhengsen
2021-12-13 20:33:50 +08:00
halx99 2367e99502 Delete obj-c style callback 2021-12-10 19:20:33 +08:00
halx99 52de9ba400 [HttpClient] Use `byte_buffer` instead `std::vector<char>` 2021-12-10 19:15:48 +08:00
halx99 742ee30c40 Add copyright notice
The any_buffer implementation is inspired by @denghe
2021-12-08 15:22:30 +08:00
halx99 95567be5db Fix #549 2021-12-08 15:16:19 +08:00
halx99 1ee106007a Remove all unnecessary nothrow 2021-12-08 00:11:53 +08:00
halx99 e04c478ce9 Don't allow Color3B to Color4B implicit 2021-12-06 21:19:45 +08:00
halx99 eb061bd845 Change DrawNode api color from Color4F to Color4B
a. Color4B is low level type before upload to GPU
b. Enable implicit convert from Color4F to Color4B

Inspired by @Denghe.NET
2021-12-06 21:09:15 +08:00
halx99 52e4d8571b Improve code quality 2021-12-06 15:02:53 +08:00
halx99 7926f99655 Improve code style 2021-12-06 13:00:44 +08:00
halx99 82a9baa718 Fix ci 2021-12-01 12:02:42 +08:00
halx99 c35c6c720b Improve code style 2021-12-01 11:49:42 +08:00
aismann 493cb44394 change all setString(const std::string & ...) to setString(std::string_view ...)
Change all methods inherited from virtual void setString(std::string_view label) = 0;
2021-11-30 20:35:34 +01:00
halx99 9472113664 Better use string_view, refer #543 2021-11-27 13:51:21 +08:00
halx99 72ac23b180 Use std::string_view instead const std::string&, refer #543
a. FontFreeType
b. ccUTF8
2021-11-27 11:08:08 +08:00
halx99 3440cf804f More safe to store customGlyphs 2021-11-26 17:53:24 +08:00
halx99 fd5ed93093 Move ntcvt directory 2021-11-26 17:19:50 +08:00
halx99 cf76785517 Fix childrenIndexer not update when child detached 2021-11-25 16:27:43 +08:00
halx99 1f10987b28 Improve logic for DownloaderCURL startTask 2021-11-23 19:01:20 +08:00
halx99 e3c8c7f8ca Fix #540 2021-11-23 12:53:13 +08:00
halx99 f4d2325e42 Improve FileUtils::isAbsolutePath for windows 2021-11-21 22:11:48 +08:00
halx99 ccedded548 using type alias 2021-11-20 18:03:48 +08:00
halx99 eee191d782 Always loop find child when indexer not found 2021-11-18 19:47:15 +08:00
halx99 b5d7ab47ed Fix #536 2021-11-18 19:02:33 +08:00
halx99 fe67e1b19f Refine code 2021-11-17 14:07:47 +08:00
halx99 c96172837e Improve TTF load, enable stream parsing at for non-android devices 2021-11-16 18:41:18 +08:00
halx99 8f047015ba Update CCPlatformConfig.h 2021-11-16 16:28:31 +08:00
halx99 353920d8a2 Update android platform macro detection 2021-11-16 16:27:56 +08:00
halx99 3b69d0cb27 Sets default render state when restart director 2021-11-15 17:49:46 +08:00
halx99 54f41f79ee Update astcenc to 3.3 2021-11-11 18:43:05 +08:00
halx99 6c3d2d13f0 Better logic 2021-11-11 17:30:47 +08:00
halx99 9cc04be833 Improve code style 2021-11-11 17:20:21 +08:00
halx99 cdf47d3bd6 Skip whitespace for sdf text render 2021-11-11 16:24:18 +08:00
halx99 16c3e90c46 Match utf32 char code parameter type 2021-11-11 16:15:23 +08:00
halx99 a0d289ee5b Improve speed for loading outline glyph 2021-11-11 15:56:07 +08:00
halx99 6716b95e24 Update comment 2021-11-09 15:24:41 +08:00
halx99 503d8818f5 Use explicit type to compare integer 2021-11-09 14:40:00 +08:00
halx99 c6945c44e5 Add `CCValue` int64_t/uint64_t support 2021-11-09 14:29:15 +08:00
halx99 2a81f626e0 Merge: 8f88705ffe 8e2c6f2ceb
Merge pull request #533 from adxeproject/children-indexer-map-support

Add children indexer map for fast getChildByTag & getChildByName support
2021-11-09 12:16:27 +08:00
halx99 f1425c1fd3 Add comment for new API Director::setChildrenIndexerEnabled [skip ci] 2021-11-09 12:15:28 +08:00
halx99 879c91e1ee Fix #534, Make unsigned char same with char.
a. char store as int
b. unsigned char store as unsigned int
2021-11-09 12:08:37 +08:00
halx99 5e0b99103b Update yasio 2021-11-08 14:43:24 +08:00
halx99 b44dd22de5 Fix parent children indexer get logic 2021-11-07 17:08:54 +08:00
halx99 1b33909d14 Match Node::_hashOfName type 2021-11-07 16:48:34 +08:00
halx99 ccf25f7458 Add children indexer map for fast getChildByTag & getChildByName support 2021-11-07 16:14:31 +08:00
姒嗘煶鏉? aeb5d496ec ScrollView sometimes shows incorrect position in vertical direction. (#532) 2021-11-04 17:08:33 +08:00
rh101 457baed8d3 Fix code formatting 2021-10-29 00:09:03 +11:00
rh101 95cb93e0a0 The releaseFontAtlas method will remove the font atlas from the cache if it has a reference count of 1, and will always call release on that atlas as expected by the calling code. 2021-10-29 00:07:46 +11:00
rh101 52b6cefcda Revert "Ensure font atlas is correctly released even if it does not exist in the atlas cache."
This reverts commit 8b27fdb832.
2021-10-29 00:05:52 +11:00