io7m
com.io7m.jcanephora 0.61.0
3.6
JCGLBlendingType

- 3.6.1. Description
- 3.6.2. Usage examples
- 3.6.3. State

3.6.1
Description
1
The JCGLBlendingType interface provides functions for configuring framebuffer color blending.
3.6.2
Usage examples
1
To enable blending, using the fairly typical color = (destination * source_alpha) + (source * (1.0 - source_alpha)) blending equation:
3.6.2.1. Blending

    JCGLBlendingType g;

    g.blendingEnable(
      BlendFunction.BLEND_SOURCE_ALPHA,
      BlendFunction.BLEND_ONE_MINUS_SOURCE_ALPHA);

3.6.3
State
1
The current blending 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.