Commit Graph

4079 Commits

Author SHA1 Message Date
halx99 9eeeb151a1 Committing clang-format changes 2021-12-28 03:00:34 +00:00
halx99 8e644ef0b4 Modify fairygui for string_view 2021-12-27 15:10:29 +08:00
halx99 01310bf1b1 Modify some extensions for string_view 2021-12-27 13:52:08 +08:00
halx99 0076283252 Huge changes for all string_view 2021-12-26 23:26:34 +08:00
halx99 2ba77a42fb Committing clang-format changes 2021-12-25 02:04:45 +00: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 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
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 82b7b95ff8 Better use string_view, refer #543 2021-11-27 13:51:21 +08: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 e3f2bde738 More safe to store customGlyphs 2021-11-26 17:53:24 +08:00
halx99 97a60e18b8
Fix childrenIndexer not update when child detached 2021-11-25 16:27:43 +08:00
halx99 7a9e0a5ea1 Always loop find child when indexer not found 2021-11-18 19:47:15 +08:00
halx99 b957d64c68 Fix #536 2021-11-18 19:02:33 +08:00
halx99 1df2fe9f85 Refine code 2021-11-17 14:07:47 +08:00
halx99 47ecd78b22 Improve TTF load, enable stream parsing at for non-android devices 2021-11-16 18:41:18 +08:00
halx99 14b70ce566 Better logic 2021-11-11 17:30:47 +08:00
halx99 e38d4052a8 Improve code style 2021-11-11 17:20:21 +08:00
halx99 4dd593ae4b Skip whitespace for sdf text render 2021-11-11 16:24:18 +08:00
halx99 92ee08e0b4 Match utf32 char code parameter type 2021-11-11 16:15:23 +08:00
halx99 e378284825 Improve speed for loading outline glyph 2021-11-11 15:56:07 +08:00
halx99 402f106d7f Fix parent children indexer get logic 2021-11-07 17:08:54 +08:00
halx99 e30cfe0de3 Match Node::_hashOfName type 2021-11-07 16:48:34 +08:00
halx99 b4549fd38c Add children indexer map for fast getChildByTag & getChildByName support 2021-11-07 16:14:31 +08:00
rh101 49fb6f7205 Fix code formatting 2021-10-29 00:09:03 +11:00
rh101 9b2b3de565 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 b60478ac90 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
rh101 8b27fdb832 Ensure font atlas is correctly released even if it does not exist in the atlas cache. 2021-10-28 17:41:25 +11:00
halx99 0ce675aa5a Fix reviews 2021-10-24 21:55:48 +08:00
halx99 83618b7e23 Resolve reviews 2021-10-24 14:09:59 +08:00
halx99 cc2ba51ed6 Use struct `Vec2` instead `Size` 2021-10-23 23:27:14 +08:00
halx99 c38681bdd0 Code style 2021-10-11 12:15:41 +08:00
halx99 bc4cbddd50 Fix some warnings 2021-10-09 13:48:56 +08:00
halx99 c4aedff539 Better spread for freetype sdf 2021-09-26 13:03:40 +08:00
halx99 8b71cf25fe Fixup 2021-09-20 14:49:00 +08:00
halx99 6ebd14f72a Fixup 2021-09-20 12:24:54 +08:00
halx99 5b53f005a5 Replace SDF implementation with freetype 2021-09-20 12:08:37 +08:00
halx99 352d57773e Refine code 2021-09-18 14:06:52 +08:00
halx99 c48390c1d8 Fix #502, avoid vector iterator damaged when remove child 2021-09-18 11:55:42 +08:00
halx99 7cc2d34398 LayerMultiplex use Node* to store layers
a. Layer no specificed functions
2021-09-03 11:13:15 +08:00
halx99 210999f9e7 Update some copyright notice 2021-09-03 10:59:08 +08:00
halx99 1401e61702
Merge pull request #488 from rh101/long-changes
Usage of long and unsigned long changed to platform independent fixed-sized types where appropriate.
2021-09-02 23:12:25 +08:00
榆柳松 1548c75a3d [fix]The problem of inaccurate maximum width limit when using system fonts. 2021-09-02 17:15:03 +08:00
rh101 aecfb8be47 FT_StreamRec expects specific method signature with `unsigned long` 2021-09-02 15:55:57 +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 a4ac70ee5f Remove deprecated stubs 2021-09-02 11:16:36 +08:00
halx99 857243ac21 Make override function default parameter same with parent 2021-09-01 11:13:17 +08:00
halx99 9abe2c38cf Revert unexpected layer changes 2021-09-01 11:11:32 +08:00
halx99 cb81a61530 Refactor layer
Reimplement LayerColor and LayerGradient based on sprite for auto batch draw
2021-08-30 19:47:53 +08:00