GPU-Accelerated Path Rendering - Presentation - GTC 2012

gputechconf.com

GPU-Accelerated Path Rendering - Presentation - GTC 2012

Path Rendering Example (2 of 3)• Initialization– Clear 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)

More magazines by this user
Similar magazines