Add font LCD sub-pixel anti-aliasing support.

This commit is contained in:
bruvzg 2022-08-12 14:03:28 +03:00
parent 230225d360
commit bcc3643989
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
49 changed files with 933 additions and 303 deletions

View file

@ -46,6 +46,7 @@ public:
CANVAS_RECT_CLIP_UV = 32,
CANVAS_RECT_IS_GROUP = 64,
CANVAS_RECT_MSDF = 128,
CANVAS_RECT_LCD = 256,
};
struct Light {
@ -193,7 +194,7 @@ public:
Rect2 rect;
Color modulate;
Rect2 source;
uint8_t flags;
uint16_t flags;
float outline;
float px_range;