diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2022-03-08 04:56:23 -0800 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2022-03-08 06:30:31 -0800 |
commit | f7a809603c4f14b2e05e78385d6f9cdbdfde5072 (patch) | |
tree | b2ff9fa9e1e86fe817aa8aab115ef12000e6c589 /thirdparty/thorvg/inc | |
parent | 86b0faf2ec3b76a09e898fcaa7dbfdd56189bed8 (diff) |
ThorVG: Sync with upstream 0.8.0
Diffstat (limited to 'thirdparty/thorvg/inc')
-rw-r--r-- | thirdparty/thorvg/inc/config.h | 2 | ||||
-rw-r--r-- | thirdparty/thorvg/inc/thorvg.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/thirdparty/thorvg/inc/config.h b/thirdparty/thorvg/inc/config.h index 41e8f6dafa..d72574bc65 100644 --- a/thirdparty/thorvg/inc/config.h +++ b/thirdparty/thorvg/inc/config.h @@ -13,5 +13,5 @@ #define THORVG_JPG_LOADER_SUPPORT 1 -#define THORVG_VERSION_STRING "0.7.1" +#define THORVG_VERSION_STRING "0.8.0" #endif diff --git a/thirdparty/thorvg/inc/thorvg.h b/thirdparty/thorvg/inc/thorvg.h index e542d36555..b08356d9d5 100644 --- a/thirdparty/thorvg/inc/thorvg.h +++ b/thirdparty/thorvg/inc/thorvg.h @@ -145,8 +145,9 @@ enum class TVG_EXPORT CompositeMethod { None = 0, ///< No composition is applied. ClipPath, ///< The intersection of the source and the target is determined and only the resulting pixels from the source are rendered. - AlphaMask, ///< The pixels of the source and the target are alpha blended. As a result, only the part of the source, which intersects with the target is visible. - InvAlphaMask ///< The pixels of the source and the complement to the target's pixels are alpha blended. As a result, only the part of the source which is not covered by the target is visible. + AlphaMask, ///< The pixels of the source and the target are alpha blended. As a result, only the part of the source, which alpha intersects with the target is visible. + InvAlphaMask, ///< The pixels of the source and the complement to the target's pixels are alpha blended. As a result, only the part of the source which alpha is not covered by the target is visible. + LumaMask ///< @BETA_API The source pixels are converted to the grayscale (luma value) and alpha blended with the target. As a result, only the part of the source, which intersects with the target is visible. }; /** |