|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
The RenderState is owned by RegionRenderer.
More...
Classes | |
| class | ProgramLocal |
Representation of RenderState data per ShaderProgram as GLUniformData. More... | |
Public Member Functions | |
| final int | id () |
| final ShaderProgram | getShaderProgram () |
Return the current ShaderProgram. More... | |
| final boolean | isShaderProgramInUse () |
Return whether the current ShaderProgram is in use. More... | |
| final boolean | setShaderProgram (final GL2ES2 gl, final ShaderProgram spNext) |
Sets the current ShaderProgram and enables it. More... | |
| final PMVMatrix4f | getMatrix () |
Borrow the current PMVMatrix4f. More... | |
| final float | getWeight () |
| final void | setWeight (final float v) |
| final Vec4f | getColorStatic (final Vec4f rgbaColor) |
| final void | setColorStatic (final Vec4f rgbaColor) |
| final void | setColorStatic (final float r, final float g, final float b, final float a) |
| final int | setAAQuality (final int v) |
Sets pass2 AA-quality rendering value clipped to the range [Region#MIN_AA_QUALITY..Region#MAX_AA_QUALITY] for Graph Region AA render-modes: Region#VBAA_RENDERING_BIT. More... | |
| final int | getAAQuality () |
Returns pass2 AA-quality rendering value for Graph Region AA render-modes: Region#VBAA_RENDERING_BIT. More... | |
| final int | setSampleCount (final int v) |
Sets pass2 AA sample count clipped to the range [Region#MIN_AA_SAMPLE_COUNT..Region#MAX_AA_SAMPLE_COUNT] for Graph Region AA render-modes: VBAA_RENDERING_BIT or Region#MSAA_RENDERING_BIT. More... | |
| final int | getSampleCount () |
Returns pass2 AA sample count for Graph Region AA render-modes: VBAA_RENDERING_BIT or Region#MSAA_RENDERING_BIT. More... | |
| final void | setClipFrustum (final Frustum clipFrustum) |
Set the optional clipping Frustum, which shall be pre-multiplied with the Mv-matrix or null to disable. More... | |
| final Frustum | getClipFrustum () |
Returns the optional Mv-premultiplied clipping Frustum or null if unused. More... | |
| final int | getHintBits () |
| final boolean | hintBitsSet (final int mask) |
| final void | setHintBits (final int mask) |
| final void | clearHintBits (final int mask) |
| final int | getDebugBits () |
| final boolean | debugBitsSet (final int mask) |
| final void | setDebugBits (final int mask) |
| final void | clearDebugBits (final int mask) |
| final boolean | updateUniformLoc (final GL2ES2 gl, final boolean updateLocation, final GLUniformData data, final boolean throwOnError) |
| final boolean | updateUniformDataLoc (final GL2ES2 gl, boolean updateLocation, boolean updateData, final GLUniformData data, final boolean throwOnError) |
| final boolean | updateAttributeLoc (final GL2ES2 gl, final boolean updateLocation, final GLArrayDataWrapper data, final boolean throwOnError) |
| final RenderState | attachTo (final GL2ES2 gl) |
| final boolean | detachFrom (final GL2ES2 gl) |
| String | toString () |
Static Public Member Functions | |
| static final RenderState | getRenderState (final GL2ES2 gl) |
| static boolean | isWeightValid (final float v) |
Static Public Attributes | |
| static final int | BITHINT_BLENDING_ENABLED = 1 << 0 |
Bitfield hint, if set stating enabled GL#GL_BLEND, otherwise disabled. More... | |
| static final int | BITHINT_GLOBAL_DEPTH_TEST_ENABLED = 1 << 1 |
Bitfield hint, if set stating globally enabled GL#GL_DEPTH_TEST, otherwise disabled. More... | |
| static final int | DEBUG_LINESTRIP = 1 << 0 |
The RenderState is owned by RegionRenderer.
It holds rendering state data like PMVMatrix4f, viewport, but also the current static color.
Definition at line 53 of file RenderState.java.
| final RenderState com.jogamp.graph.curve.opengl.RenderState.attachTo | ( | final GL2ES2 | gl | ) |
Definition at line 398 of file RenderState.java.
| final void com.jogamp.graph.curve.opengl.RenderState.clearDebugBits | ( | final int | mask | ) |
| final void com.jogamp.graph.curve.opengl.RenderState.clearHintBits | ( | final int | mask | ) |
| final boolean com.jogamp.graph.curve.opengl.RenderState.debugBitsSet | ( | final int | mask | ) |
Definition at line 315 of file RenderState.java.
| final boolean com.jogamp.graph.curve.opengl.RenderState.detachFrom | ( | final GL2ES2 | gl | ) |
Definition at line 402 of file RenderState.java.
| final int com.jogamp.graph.curve.opengl.RenderState.getAAQuality | ( | ) |
Returns pass2 AA-quality rendering value for Graph Region AA render-modes: Region#VBAA_RENDERING_BIT.
Definition at line 284 of file RenderState.java.
| final Frustum com.jogamp.graph.curve.opengl.RenderState.getClipFrustum | ( | ) |
Returns the optional Mv-premultiplied clipping Frustum or null if unused.
Definition at line 301 of file RenderState.java.
Definition at line 265 of file RenderState.java.
| final int com.jogamp.graph.curve.opengl.RenderState.getDebugBits | ( | ) |
Definition at line 314 of file RenderState.java.
| final int com.jogamp.graph.curve.opengl.RenderState.getHintBits | ( | ) |
Definition at line 303 of file RenderState.java.
| final PMVMatrix4f com.jogamp.graph.curve.opengl.RenderState.getMatrix | ( | ) |
Borrow the current PMVMatrix4f.
Definition at line 252 of file RenderState.java.
|
static |
| final int com.jogamp.graph.curve.opengl.RenderState.getSampleCount | ( | ) |
Returns pass2 AA sample count for Graph Region AA render-modes: VBAA_RENDERING_BIT or Region#MSAA_RENDERING_BIT.
Definition at line 289 of file RenderState.java.
| final ShaderProgram com.jogamp.graph.curve.opengl.RenderState.getShaderProgram | ( | ) |
Return the current ShaderProgram.
Definition at line 223 of file RenderState.java.
| final float com.jogamp.graph.curve.opengl.RenderState.getWeight | ( | ) |
| final boolean com.jogamp.graph.curve.opengl.RenderState.hintBitsSet | ( | final int | mask | ) |
| final int com.jogamp.graph.curve.opengl.RenderState.id | ( | ) |
Definition at line 220 of file RenderState.java.
| final boolean com.jogamp.graph.curve.opengl.RenderState.isShaderProgramInUse | ( | ) |
Return whether the current ShaderProgram is in use.
Definition at line 226 of file RenderState.java.
|
static |
| final int com.jogamp.graph.curve.opengl.RenderState.setAAQuality | ( | final int | v | ) |
Sets pass2 AA-quality rendering value clipped to the range [Region#MIN_AA_QUALITY..Region#MAX_AA_QUALITY] for Graph Region AA render-modes: Region#VBAA_RENDERING_BIT.
Definition at line 282 of file RenderState.java.
| final void com.jogamp.graph.curve.opengl.RenderState.setClipFrustum | ( | final Frustum | clipFrustum | ) |
Set the optional clipping Frustum, which shall be pre-multiplied with the Mv-matrix or null to disable.
Definition at line 292 of file RenderState.java.
| final void com.jogamp.graph.curve.opengl.RenderState.setColorStatic | ( | final float | r, |
| final float | g, | ||
| final float | b, | ||
| final float | a | ||
| ) |
Definition at line 274 of file RenderState.java.
| final void com.jogamp.graph.curve.opengl.RenderState.setColorStatic | ( | final Vec4f | rgbaColor | ) |
| final void com.jogamp.graph.curve.opengl.RenderState.setDebugBits | ( | final int | mask | ) |
| final void com.jogamp.graph.curve.opengl.RenderState.setHintBits | ( | final int | mask | ) |
| final int com.jogamp.graph.curve.opengl.RenderState.setSampleCount | ( | final int | v | ) |
Sets pass2 AA sample count clipped to the range [Region#MIN_AA_SAMPLE_COUNT..Region#MAX_AA_SAMPLE_COUNT] for Graph Region AA render-modes: VBAA_RENDERING_BIT or Region#MSAA_RENDERING_BIT.
Definition at line 287 of file RenderState.java.
| final boolean com.jogamp.graph.curve.opengl.RenderState.setShaderProgram | ( | final GL2ES2 | gl, |
| final ShaderProgram | spNext | ||
| ) |
Sets the current ShaderProgram and enables it.
If the given ShaderProgram is not the current, method returns true, otherwise false.
| gl | |
| spNext | the next current ShaderProgram to be set and enabled |
Definition at line 238 of file RenderState.java.
| final void com.jogamp.graph.curve.opengl.RenderState.setWeight | ( | final float | v | ) |
Definition at line 258 of file RenderState.java.
| String com.jogamp.graph.curve.opengl.RenderState.toString | ( | ) |
Definition at line 412 of file RenderState.java.
| final boolean com.jogamp.graph.curve.opengl.RenderState.updateAttributeLoc | ( | final GL2ES2 | gl, |
| final boolean | updateLocation, | ||
| final GLArrayDataWrapper | data, | ||
| final boolean | throwOnError | ||
| ) |
| gl | |
| data | |
| throwOnError | TODO |
Definition at line 378 of file RenderState.java.
| final boolean com.jogamp.graph.curve.opengl.RenderState.updateUniformDataLoc | ( | final GL2ES2 | gl, |
| boolean | updateLocation, | ||
| boolean | updateData, | ||
| final GLUniformData | data, | ||
| final boolean | throwOnError | ||
| ) |
| gl | |
| updateLocation | |
| updateData | TODO |
| data | |
| throwOnError | TODO |
Definition at line 355 of file RenderState.java.
| final boolean com.jogamp.graph.curve.opengl.RenderState.updateUniformLoc | ( | final GL2ES2 | gl, |
| final boolean | updateLocation, | ||
| final GLUniformData | data, | ||
| final boolean | throwOnError | ||
| ) |
| gl | |
| updateLocation | |
| data | |
| throwOnError | TODO |
Definition at line 333 of file RenderState.java.
|
static |
Bitfield hint, if set stating enabled GL#GL_BLEND, otherwise disabled.
Shall be set via setHintBits(int) and cleared via clearHintBits(int).
If set, GLRegion's draw-method will set the proper blend-function and the clear-color to transparent-black in case of multipass FBO rendering.
Shall be set by custom code, e.g. via RegionRenderer's enable and disable RegionRenderer.GLCallback as done in RegionRenderer#defaultBlendEnable and RegionRenderer#defaultBlendDisable.
Definition at line 73 of file RenderState.java.
|
static |
Bitfield hint, if set stating globally enabled GL#GL_DEPTH_TEST, otherwise disabled.
Shall be set via setHintBits(int) and cleared via clearHintBits(int).
GLRegion's draw-method may toggle depth test, and reset it's state according to this hint.
Shall be set by custom code, e.g. after RenderState or RegionRenderer construction.
Definition at line 89 of file RenderState.java.
|
static |
Definition at line 91 of file RenderState.java.