Flutter Engine
The Flutter Engine
|
#include <GrQuadUtils.h>
Public Member Functions | |
void | reset (const GrQuad &deviceQuad, const GrQuad *localQuad) |
skvx::float4 | inset (const skvx::float4 &edgeDistances, GrQuad *deviceInset, GrQuad *localInset) |
void | outset (const skvx::float4 &edgeDistances, GrQuad *deviceOutset, GrQuad *localOutset) |
void | getEdgeEquations (skvx::float4 *a, skvx::float4 *b, skvx::float4 *c) |
skvx::float4 | getEdgeLengths () |
bool | isSubpixel () |
Friends | |
int | ClipToW0 (DrawQuad *, DrawQuad *) |
Definition at line 55 of file GrQuadUtils.h.
void GrQuadUtils::TessellationHelper::getEdgeEquations | ( | skvx::float4 * | a, |
skvx::float4 * | b, | ||
skvx::float4 * | c | ||
) |
Definition at line 1178 of file GrQuadUtils.cpp.
skvx::Vec< 4, float > GrQuadUtils::TessellationHelper::getEdgeLengths | ( | ) |
Definition at line 1189 of file GrQuadUtils.cpp.
float4 GrQuadUtils::TessellationHelper::inset | ( | const skvx::float4 & | edgeDistances, |
GrQuad * | deviceInset, | ||
GrQuad * | localInset | ||
) |
Definition at line 1138 of file GrQuadUtils.cpp.
bool GrQuadUtils::TessellationHelper::isSubpixel | ( | ) |
Definition at line 1208 of file GrQuadUtils.cpp.
void GrQuadUtils::TessellationHelper::outset | ( | const skvx::float4 & | edgeDistances, |
GrQuad * | deviceOutset, | ||
GrQuad * | localOutset | ||
) |
Definition at line 1163 of file GrQuadUtils.cpp.
Definition at line 1122 of file GrQuadUtils.cpp.
Clip the device vertices of 'quad' to be in front of the W = 0 plane (w/in epsilon). The local coordinates will be updated to match the new clipped vertices. This returns the number of clipped quads that need to be drawn: 0 if 'quad' was entirely behind the plane, 1 if 'quad' did not need to be clipped or if 2 or 3 vertices were clipped, or 2 if 'quad' had one vertex clipped (producing a pentagonal shape spanned by 'quad' and 'extraVertices').
Definition at line 399 of file GrQuadUtils.cpp.