mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-26 16:16:46 +00:00
engines: ++TODO
some blends are not supported yet
This commit is contained in:
parent
bdccfb2449
commit
da05042b53
2 changed files with 6 additions and 0 deletions
|
@ -980,6 +980,9 @@ const RenderSurface* GlRenderer::mainSurface()
|
|||
|
||||
bool GlRenderer::blend(BlendMethod method)
|
||||
{
|
||||
//TODO: support
|
||||
if (method == BlendMethod::Hue || method == BlendMethod::Saturation || method == BlendMethod::Color || method == BlendMethod::Luminosity || method == BlendMethod::HardMix) return false;
|
||||
|
||||
if (method == mBlendMethod) return true;
|
||||
|
||||
mBlendMethod = method;
|
||||
|
|
|
@ -283,6 +283,9 @@ RenderRegion WgRenderer::region(RenderData data)
|
|||
|
||||
bool WgRenderer::blend(BlendMethod method)
|
||||
{
|
||||
//TODO: support
|
||||
if (method == BlendMethod::Hue || method == BlendMethod::Saturation || method == BlendMethod::Color || method == BlendMethod::Luminosity || method == BlendMethod::HardMix) return false;
|
||||
|
||||
mBlendMethod = method;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue