Flutter Engine
The Flutter Engine
|
Typedefs | |
typedef std::function< SkScalar(SkScalar, SkScalar)> | HeightFunc |
Functions | |
sk_sp< SkVertices > | MakeAmbient (const SkPath &path, const SkMatrix &ctm, const SkPoint3 &zPlane, bool transparent) |
sk_sp< SkVertices > | MakeSpot (const SkPath &path, const SkMatrix &ctm, const SkPoint3 &zPlane, const SkPoint3 &lightPos, SkScalar lightRadius, bool transparent, bool directional) |
Definition at line 25 of file SkShadowTessellator.h.
sk_sp< SkVertices > SkShadowTessellator::MakeAmbient | ( | const SkPath & | path, |
const SkMatrix & | ctm, | ||
const SkPoint3 & | zPlane, | ||
bool | transparent | ||
) |
This function generates an ambient shadow mesh for a path by walking the path, outsetting by the radius, and setting inner and outer colors to umbraColor and penumbraColor, respectively. If transparent is true, then the center of the ambient shadow will be filled in.
Definition at line 1167 of file SkShadowTessellator.cpp.
sk_sp< SkVertices > SkShadowTessellator::MakeSpot | ( | const SkPath & | path, |
const SkMatrix & | ctm, | ||
const SkPoint3 & | zPlane, | ||
const SkPoint3 & | lightPos, | ||
SkScalar | lightRadius, | ||
bool | transparent, | ||
bool | directional | ||
) |
This function generates a spot shadow mesh for a path by walking the transformed path, further transforming by the scale and translation, and outsetting and insetting by a radius. The center will be clipped against the original path unless transparent is true.
Definition at line 1176 of file SkShadowTessellator.cpp.