What is path rendering?

What is path rendering? What is path rendering?

gputechconf.com
from gputechconf.com More from this publisher
13.07.2015 Views

Path Geometric QueriesglIsPointInFillPathNVdetermine if object-space (x,y) position is inside or outside path, givena winding number maskglIsPointInStrokePathNVdetermine if object-space (x,y) position is inside the stroke of a pathaccounts for dash pattern, joins, and capsglGetPathLengthNVreturns approximation of geometric length of a given sub-range of pathsegmentsglPointAlongPathNVreturns the object-space (x,y) position and 2D tangent vector a givenoffset into a specified path objectUseful for “text follows a path”Queries are modeled after OpenVG queries

Accessible Samples of a Transformed PathWhen stenciled or covered, a path is transformed by OpenGL’scurrent modelview-projection matrixAllows for arbitrary 4x4 projective transformMeans (x,y,0,1) object-space coordinate can be transformed to have depthFill or stroke stenciling affects “accessible” samplesA samples is not accessible if any of these apply to the sampleclipped by user-defined or view frustum clip planesdiscarded by the polygon stipple, if enableddiscarded by the pixel ownership testdiscarded by the scissor test, if enableddiscarded by the depth test, if enableddisplaced by the polygon offset from glPathStencilDepthOffsetNVdiscarded by the depth test, if enableddiscarded by the (implicitly enabled) stencil testspecified by glPathStencilFuncNVwhere the read mask is the bitwise AND of the glPathStencilFuncNV readmask and the bit-inversion of the effective mask parameter of the stencilingoperation

Path Geometric QueriesglIsPointInFillPathNVdetermine if object-space (x,y) position <strong>is</strong> inside or outside <strong>path</strong>, givena winding number maskglIsPointInStrokePathNVdetermine if object-space (x,y) position <strong>is</strong> inside the stroke of a <strong>path</strong>accounts for dash pattern, joins, and capsglGetPathLengthNVreturns approximation of geometric length of a given sub-range of <strong>path</strong>segmentsglPointAlongPathNVreturns the object-space (x,y) position and 2D tangent vector a givenoffset into a specified <strong>path</strong> objectUseful for “text follows a <strong>path</strong>”Queries are modeled after OpenVG queries

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!