io7m
io7m-jcanephora 0.50.0
3.8
JCGLColorBufferMaskingType

- 3.8.1. Description
- 3.8.2. Usage example
- 3.8.3. State

3.8.1
Description
1
The JCGLColorBufferMaskingType interface provides functions for masking writes to specific color channels of the framebuffer.
3.8.2
Usage example
1
The following code prevents subsequent rendering operations from rendering to the red channel of any framebuffer:
3.8.2.1. Masking

    JCGLColorBufferMaskingType g;

    g.colorBufferMask(false, true, true, true);

3.8.3
State
1
The current masking state is global to a given context; when enabled, it is enabled for all subsequent rendering operations on that context until explicitly modified or disabled.