Commit Graph

1471 Commits

Author SHA1 Message Date
halx99 2d15d9d447 Use std::string_view directly 2021-12-16 18:54:16 +08:00
halx99 5c28896003 Add utils::computeDigest for support more hash algorithm 2021-12-16 11:14:39 +08:00
halx99 8ab6ad0139 Fix #550, #484
Invoke AudioEngine::end before Director destroyed, because it hold scheduler belong Director.
2021-12-15 16:56:08 +08:00
halx99 5f7392a8e6 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 eeeb5496fa
Add copyright notice
The any_buffer implementation is inspired by @denghe
2021-12-08 15:22:30 +08:00
halx99 dffe96ce1f Fix #549 2021-12-08 15:16:19 +08:00
halx99 b459acbcf7 Remove all unnecessary nothrow 2021-12-08 00:11:53 +08:00
halx99 c3e94eddfa
Don't allow Color3B to Color4B implicit 2021-12-06 21:19:45 +08:00
halx99 70334a02be 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 232387ac11 Improve code quality 2021-12-06 15:02:53 +08:00
halx99 a95a00e96b Improve code style 2021-12-06 13:00:44 +08:00
aismann 6a41776f20 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 44b78723dc Use std::string_view instead const std::string&, refer #543
a. FontFreeType
b. ccUTF8
2021-11-27 11:08:08 +08:00
halx99 bc14e09079 Move ntcvt directory 2021-11-26 17:19:50 +08:00
halx99 81c063c427
Sets default render state when restart director 2021-11-15 17:49:46 +08:00
halx99 ee9b7430c5 Update astcenc to 3.3 2021-11-11 18:43:05 +08:00
halx99 fe72c166b6 Update comment 2021-11-09 15:24:41 +08:00
halx99 0f0b3b95eb Use explicit type to compare integer 2021-11-09 14:40:00 +08:00
halx99 95a1734cd7 Add `CCValue` int64_t/uint64_t support 2021-11-09 14:29:15 +08:00
halx99 00f197f50d
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 8e2c6f2ceb Add comment for new API Director::setChildrenIndexerEnabled [skip ci] 2021-11-09 12:15:28 +08:00
halx99 8f88705ffe 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 b4549fd38c Add children indexer map for fast getChildByTag & getChildByName support 2021-11-07 16:14:31 +08:00
halx99 af19d52d0e
Update CCConsole.cpp 2021-10-27 23:02:38 +08:00
halx99 45607062bd Fix ci 2021-10-25 20:29:40 +08:00
halx99 67ce72db58 Unify Tex2F to Vec2 2021-10-24 22:44:44 +08:00
halx99 0ce675aa5a Fix reviews 2021-10-24 21:55:48 +08:00
halx99 cc2ba51ed6 Use struct `Vec2` instead `Size` 2021-10-23 23:27:14 +08:00
halx99 d51056935f Put fps labels to safe origin 2021-10-09 14:45:49 +08:00
halx99 bc4cbddd50 Fix some warnings 2021-10-09 13:48:56 +08:00
rh101 5c7d116e5b Avoid usage of strlen and terminate decoding on any null character. 2021-10-05 13:29:33 +11:00
rh101 5a2c050bbe Move url encode and decode methods to ccUtils 2021-10-05 12:50:01 +11:00
rh101 456d26628c Change off_t to int64_t 2021-09-02 21:18:23 +10:00
rh101 568e3612bd 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
rh101 de182c8360 Change %ld to %d for 32bit data types
Regenerate LUA bindings
2021-09-02 17:46:22 +10:00
rh101 0b27d0980c Add required include for uint32_t
Fix code warning
2021-09-02 16:18:32 +10:00
rh101 737f0c39d7 Revert to usage of `long` type for external library methods that require it. 2021-09-02 16:08:57 +10:00
rh101 64695cfb48 Revert changes where `long` type is required. 2021-09-02 15:59:29 +10:00
rh101 4d1ff40736 Usage of long and unsigned long changed to platform independent fixed-sized types where appropriate. 2021-09-02 15:39:28 +10:00
halx99 d197e8b245 Fix part of #487 2021-09-02 11:43:27 +08:00
halx99 7dd7422abd Macro compatible 2021-08-27 13:54:05 +08:00
halx99 bd436ae078 Fix lua build for win64 and 1 warning 2021-08-27 11:41:11 +08:00
halx99 f9ac34c20f Fix byteorder detect error for win64 and some warnings 2021-08-27 11:27:33 +08:00
halx99 cfffd35aec HttpClient: push front available channel to fix dns cache missing 2021-08-03 14:41:30 +08:00
halx99 81f646783b clang-format: Set PointerAlignment to Left 2021-07-17 23:36:13 +08:00
halx99 ad035e2729 Improve code quality 2021-07-17 23:32:31 +08:00
halx99 bc6ebd920a Improve code quality 2021-07-15 23:03:43 +08:00
halx99 ec9a50136f Add new API Node::hitTest 2021-07-15 17:01:57 +08:00
halx99 522de34990 Add defaultValue CCValue::asXXX for number types [skip ci] 2021-07-15 12:21:38 +08:00
halx99 c766cba275
Improve logic 2021-07-10 00:32:19 +08:00