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 Rendering Example (3 of 3)Render star with non-zero fill styleStencil pathglStencilFillPathNV(pathObj, GL_COUNT_UP_NV, 0x1F);Cover pathglEnable(GL_STENCIL_TEST);glStencilFunc(GL_NOTEQUAL, 0, 0x1F);glStencilOp(GL_KEEP, GL_KEEP, GL_ZERO);glColor3f(0,1,0); // greenglCoverFillPathNV(pathObj, GL_BOUNDING_BOX_NV);Alternative: for even-odd fill styleJust program glStencilFunc differentlyglStencilFunc(GL_NOTEQUAL, 0, 0x1); // alternative masknon-zero fill styleeven-odd fill style

“Stencil, then Cover”Path Fill StencilingSpecify a pathSpecify arbitrary path transformationProjective (4x4) allowedDepth values can be generated fordepth testingSample accessibility determinedAccessibility can be limited by anyor all ofScissor test, depth test, stenciltest, view frustum, user-definedclip planes, sample mask, stipplepattern, and window ownershipWinding number w.r.t. thetransformed path is computedAdded to stencil value ofaccessible samplesstencil fillpath commandper-pathfill regionoperationsper-sampleoperationsFillstencilingspecificpathfront-endprojectivetransformclipping &scissoringwindow, depth& stencil testspath windingnumbercomputationstencilupdate:+, -, or invertpathobjectsampleaccessibilitystencilbuffer

“Stencil, then Cover”Path Fill StencilingSpecify a <strong>path</strong>Specify arbitrary <strong>path</strong> transformationProjective (4x4) allowedDepth values can be generated fordepth testingSample accessibility determinedAccessibility can be limited by anyor all ofSc<strong>is</strong>sor test, depth test, stenciltest, view frustum, user-definedclip planes, sample mask, stipplepattern, and window ownershipWinding number w.r.t. thetransformed <strong>path</strong> <strong>is</strong> computedAdded to stencil value ofaccessible samplesstencil fill<strong>path</strong> commandper-<strong>path</strong>fill regionoperationsper-sampleoperationsFillstencilingspecific<strong>path</strong>front-endprojectivetransformclipping &sc<strong>is</strong>soringwindow, depth& stencil tests<strong>path</strong> windingnumbercomputationstencilupdate:+, -, or invert<strong>path</strong>objectsampleaccessibilitystencilbuffer

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

Saved successfully!

Ooh no, something went wrong!