pushShaderMask method

EngineLayer pushShaderMask (Shader shader, Rect maskRect, BlendMode blendMode)

Pushes a shader mask operation onto the operation stack.

The given shader is applied to the object's rasterization in the given rectangle using the given blend mode.

See pop for details about the operation stack.

Implementation

EngineLayer pushShaderMask(Shader shader, Rect maskRect, BlendMode blendMode) {
  return _pushShaderMask(shader,
                         maskRect.left,
                         maskRect.right,
                         maskRect.top,
                         maskRect.bottom,
                         blendMode.index);
}