io7m
io7m-jcanephora 0.45.2
3.16
JCGLStencilBuffersType

- 3.16.1. Description
- 3.16.2. Usage examples

3.16.1
Description
1
The JCGLStencilBuffersType interface provides functions for controlling the stencil buffer.
3.16.2
Usage examples
1
To clear the current stencil buffer:
3.16.2.1. Stencil buffer clear

    JCGLStencilBuffersType g;

    g.stencilBufferClear(0);

2
See the referenced JavaDoc for the full range of functions. Most of the functions will raise exceptions if the current framebuffer configuration does not include a stencil buffer; this is considered to be behaviour preferable to silently producing incorrect results.