Commit Graph

254 Commits

Author SHA1 Message Date
halx99 5ba5049146 Huge changes for all string_view 2021-12-26 23:26:34 +08:00
halx99 8f83250ba4 Committing clang-format changes 2021-12-25 02:04:45 +00:00
halx99 b751d0e3fb Use std::string_view directly 2021-12-16 18:54:16 +08:00
halx99 e042449393 Add utils::computeDigest for support more hash algorithm 2021-12-16 11:14:39 +08:00
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 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
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 72ac23b180 Use std::string_view instead const std::string&, refer #543
a. FontFreeType
b. ccUTF8
2021-11-27 11:08:08 +08:00
halx99 fd5ed93093 Move ntcvt directory 2021-11-26 17:19:50 +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 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 ccf25f7458 Add children indexer map for fast getChildByTag & getChildByName support 2021-11-07 16:14:31 +08:00
halx99 0547a4b7c2 Update CCConsole.cpp 2021-10-27 23:02:38 +08:00
halx99 2bd82c11bd Fix ci 2021-10-25 20:29:40 +08:00
halx99 6a2e09f3c8 Unify Tex2F to Vec2 2021-10-24 22:44:44 +08:00
halx99 8e08ef8799 Fix reviews 2021-10-24 21:55:48 +08:00
halx99 554412f4fd Use struct `Vec2` instead `Size` 2021-10-23 23:27:14 +08:00
halx99 56293e9713 Put fps labels to safe origin 2021-10-09 14:45:49 +08:00
halx99 c15442eaad Fix some warnings 2021-10-09 13:48:56 +08:00
rh101 fc4eed4853 Avoid usage of strlen and terminate decoding on any null character. 2021-10-05 13:29:33 +11:00
rh101 995ba4eb95 Move url encode and decode methods to ccUtils 2021-10-05 12:50:01 +11:00
姒嗘煶鏉? 35b658c90e Merge: f5663f279c d73d937894
Merge remote-tracking branch 'upstream/dev' into dev
2021-09-05 20:45:32 +08:00
姒嗘煶鏉? 0aff165959 [fix]ScrollView and ListView goes back to the front incorrectly after calling doLayout. 2021-09-05 20:44:14 +08:00
rh101 5e0a717aa5 Change off_t to int64_t 2021-09-02 21:18:23 +10:00
rh101 4e7db23d38 Remove getLong() method
Change %du to %u, and %lx to %x
Use "stdint.h" instead of <cstdint> for TGAlib.h
2021-09-02 20:30:20 +10:00
姒嗘煶鏉? 64e2cdd8d9 [fix]The problem of inaccurate maximum width limit when using system fonts. 2021-09-02 17:15:03 +08:00
rh101 eba8696d65 Change %ld to %d for 32bit data types
Regenerate LUA bindings
2021-09-02 17:46:22 +10:00
rh101 5c61f42990 Add required include for uint32_t
Fix code warning
2021-09-02 16:18:32 +10:00
rh101 4e5b07f6cb Revert to usage of `long` type for external library methods that require it. 2021-09-02 16:08:57 +10:00
rh101 38167107cc Revert changes where `long` type is required. 2021-09-02 15:59:29 +10:00
rh101 d8fd94db8a Usage of long and unsigned long changed to platform independent fixed-sized types where appropriate. 2021-09-02 15:39:28 +10:00
halx99 0cee74a4bf Fix part of #487 2021-09-02 11:43:27 +08:00
halx99 fc1c901209 Macro compatible 2021-08-27 13:54:05 +08:00
halx99 73c5f887b5 Merge: 30625f2330 f5af50debd
Merge pull request #475 from adxeproject/win64

Win64 build support [DONE] 馃殌馃帀
2021-08-27 12:34:24 +08:00
aismann 147b4b7946 Update README.md 2021-08-27 06:25:18 +02:00
halx99 fa1f2f2d33 Fix lua build for win64 and 1 warning 2021-08-27 11:41:11 +08:00