What is path rendering?
What is path rendering?
What is path rendering?
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Path Rendering Example (3 of 3)Render star with non-zero fill styleStencil <strong>path</strong>glStencilFillPathNV(<strong>path</strong>Obj, GL_COUNT_UP_NV, 0x1F);Cover <strong>path</strong>glEnable(GL_STENCIL_TEST);glStencilFunc(GL_NOTEQUAL, 0, 0x1F);glStencilOp(GL_KEEP, GL_KEEP, GL_ZERO);glColor3f(0,1,0); // greenglCoverFillPathNV(<strong>path</strong>Obj, 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