Stencil: use stencil for mask drawing
Usage
with gx_stencil:
# change viewport
# draw stuff
Statement of stencilPush/stencilPop, designed to be use with “with” keyword.
Alias: gx_stencil.
Alias to GlStencil()
Create a new stack in stencil stack. All the next draw will be done in stencil buffer until stencilUse() will be called.
Pop out the last stack from stencil stack
Switch from stencil draw to color draw. Now, all drawing will be done on color buffer, using latest stencil stack.