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 (2 of 3)InitializationClear the stencil buffer to zero and the color buffer to blackglClearStencil(0);glClearColor(0,0,0,0);glStencilMask(~0);glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);Specify the Path's TransformglMatrixIdentityEXT(GL_PROJECTION);glMatrixOrthoEXT(GL_MODELVIEW, 0,200, 0,200, -1,1); // uses DSA!Nothing really specific to path rendering hereDSA = OpenGL’s Direct State Access extension (EXT_direct_state_access)

Path Rendering Example (2 of 3)InitializationClear the stencil buffer to zero and the color buffer to blackglClearStencil(0);glClearColor(0,0,0,0);glStencilMask(~0);glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);Specify the Path's TransformglMatrixIdentityEXT(GL_PROJECTION);glMatrixOrthoEXT(GL_MODELVIEW, 0,200, 0,200, -1,1); // uses DSA!Nothing really specific to <strong>path</strong> <strong>rendering</strong> hereDSA = OpenGL’s Direct State Access extension (EXT_direct_state_access)

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

Saved successfully!

Ooh no, something went wrong!