diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2018-12-11 23:15:49 -0500 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2018-12-11 23:15:49 -0500 |
commit | aec5bdb43bf5d2363cd68d8ba39d31fc2b9bef07 (patch) | |
tree | 9f32b9f88dd08c64ab6c98c725f80368be295c37 | |
parent | 3e8a2283f5119376098a0ec66f876866ff5cea4d (diff) | |
download | freetype2-aec5bdb43bf5d2363cd68d8ba39d31fc2b9bef07.tar.gz |
Color glyph framework and rendering (1/3).
* include/freetype/fttypes.h (FT_Color): Move here...
* include/freetype/ftcolor.h (FT_Color): ...from here.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | include/freetype/ftcolor.h | 37 | ||||
-rw-r--r-- | include/freetype/fttypes.h | 37 |
3 files changed, 44 insertions, 37 deletions
@@ -1,3 +1,10 @@ +2018-12-11 Alexei Podtelezhnikov <apodtele@gmail.com> + + Color glyph framework and rendering (1/3). + + * include/freetype/fttypes.h (FT_Color): Move here... + * include/freetype/ftcolor.h (FT_Color): ...from here. + 2018-12-11 Werner Lemberg <wl@gnu.org> * src/truetype/ttgload.c (TT_Hint_Glyph): Remove useless test. diff --git a/include/freetype/ftcolor.h b/include/freetype/ftcolor.h index 93df3a2fd..2780661e9 100644 --- a/include/freetype/ftcolor.h +++ b/include/freetype/ftcolor.h @@ -51,43 +51,6 @@ FT_BEGIN_HEADER /************************************************************************** * - * @struct: - * FT_Color - * - * @description: - * This structure models a BGRA color value of a `CPAL` palette entry. - * - * The used color space is sRGB; the colors are not pre-multiplied, and - * alpha values must be explicitly set. - * - * @fields: - * blue :: - * Blue value. - * - * green :: - * Green value. - * - * red :: - * Red value. - * - * alpha :: - * Alpha value, giving the red, green, and blue color's opacity. - * - * @since: - * 2.10 - */ - typedef struct FT_Color_ - { - FT_Byte blue; - FT_Byte green; - FT_Byte red; - FT_Byte alpha; - - } FT_Color; - - - /************************************************************************** - * * @enum: * FT_PALETTE_XXX * diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h index b20879b62..6086d8130 100644 --- a/include/freetype/fttypes.h +++ b/include/freetype/fttypes.h @@ -398,6 +398,43 @@ FT_BEGIN_HEADER /************************************************************************** * * @struct: + * FT_Color + * + * @description: + * This structure models a BGRA color value. + * + * The used color space is sRGB; the colors are not pre-multiplied, and + * alpha values must be explicitly set. + * + * @fields: + * blue :: + * Blue value. + * + * green :: + * Green value. + * + * red :: + * Red value. + * + * alpha :: + * Alpha value, giving the red, green, and blue color's opacity. + * + * @since: + * 2.10 + */ + typedef struct FT_Color_ + { + FT_Byte blue; + FT_Byte green; + FT_Byte red; + FT_Byte alpha; + + } FT_Color; + + + /************************************************************************** + * + * @struct: * FT_Data * * @description: |