JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil Class Reference

Tool to pipeline GL2ES2 into a fixed function emulation implementing GL2ES1. More...

Collaboration diagram for com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil:

Static Public Member Functions

static final GL2ES1 wrapFixedFuncEmul (final GL gl, final ShaderSelectionMode mode, final PMVMatrix pmvMatrix, final boolean force, final boolean verbose)
 
static final GL2ES1 wrapFixedFuncEmul (final GL gl, final ShaderSelectionMode mode, final PMVMatrix4f pmvMatrix)
 
static String getPredefinedArrayIndexName (final int glArrayIndex)
 Mapping fixed function (client) array indices to GLSL array attribute names. More...
 

Static Public Attributes

static final String mgl_Vertex = GLPointerFuncUtil.mgl_Vertex
 String name for. More...
 
static final String mgl_Normal = GLPointerFuncUtil.mgl_Normal
 String name for. More...
 
static final String mgl_Color = GLPointerFuncUtil.mgl_Color
 String name for. More...
 
static final String mgl_MultiTexCoord = GLPointerFuncUtil.mgl_MultiTexCoord
 String name for. More...
 

Detailed Description

Tool to pipeline GL2ES2 into a fixed function emulation implementing GL2ES1.

Definition at line 25 of file FixedFuncUtil.java.

Member Function Documentation

◆ getPredefinedArrayIndexName()

static String com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.getPredefinedArrayIndexName ( final int  glArrayIndex)
static

◆ wrapFixedFuncEmul() [1/2]

static final GL2ES1 com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.wrapFixedFuncEmul ( final GL  gl,
final ShaderSelectionMode  mode,
final PMVMatrix  pmvMatrix,
final boolean  force,
final boolean  verbose 
)
static
Parameters
gl
modeone of the ShaderSelectionModes
pmvMatrixoptional pass through PMVMatrix for the FixedFuncHook and FixedFuncPipeline
Returns
If gl is a GL2ES1 and force is false, return the type cast object, otherwise create a fixed function emulation pipeline using the given GL2ES2 impl and hook it to the GLContext via GLContext#setGL(GL).
Exceptions
GLExceptionif the GL object is neither GL2ES1 nor GL2ES2
See also
ShaderSelectionMode::AUTO
ShaderSelectionMode::COLOR
ShaderSelectionMode::COLOR_LIGHT_PER_VERTEX
ShaderSelectionMode::COLOR_TEXTURE
ShaderSelectionMode::COLOR_TEXTURE_LIGHT_PER_VERTEX

Definition at line 41 of file FixedFuncUtil.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wrapFixedFuncEmul() [2/2]

static final GL2ES1 com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.wrapFixedFuncEmul ( final GL  gl,
final ShaderSelectionMode  mode,
final PMVMatrix4f  pmvMatrix 
)
static
Parameters
gl
modeone of the ShaderSelectionModes
pmvMatrixoptional pass through PMVMatrix for the FixedFuncHook and FixedFuncPipeline
Returns
If gl is a GL2ES1, return the type cast object, otherwise create a fixed function emulation pipeline using the GL2ES2 impl. and hook it to the GLContext via GLContext#setGL(GL).
Exceptions
GLExceptionif the GL object is neither GL2ES1 nor GL2ES2
See also
ShaderSelectionMode::AUTO
ShaderSelectionMode::COLOR
ShaderSelectionMode::COLOR_LIGHT_PER_VERTEX
ShaderSelectionMode::COLOR_TEXTURE
ShaderSelectionMode::COLOR_TEXTURE_LIGHT_PER_VERTEX

Definition at line 70 of file FixedFuncUtil.java.

Here is the call graph for this function:

Member Data Documentation

◆ mgl_Color

final String com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.mgl_Color = GLPointerFuncUtil.mgl_Color
static

String name for.

See also
com.jogamp.opengl.GL2::GL_COLOR_ARRAY

Definition at line 114 of file FixedFuncUtil.java.

◆ mgl_MultiTexCoord

final String com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.mgl_MultiTexCoord = GLPointerFuncUtil.mgl_MultiTexCoord
static

String name for.

See also
com.jogamp.opengl.GL2::GL_TEXTURE_COORD_ARRAY

Definition at line 120 of file FixedFuncUtil.java.

◆ mgl_Normal

final String com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.mgl_Normal = GLPointerFuncUtil.mgl_Normal
static

String name for.

See also
com.jogamp.opengl.GL2::GL_NORMAL_ARRAY

Definition at line 108 of file FixedFuncUtil.java.

◆ mgl_Vertex

final String com.jogamp.opengl.util.glsl.fixedfunc.FixedFuncUtil.mgl_Vertex = GLPointerFuncUtil.mgl_Vertex
static

String name for.

See also
com.jogamp.opengl.GL2::GL_VERTEX_ARRAY

Definition at line 102 of file FixedFuncUtil.java.


The documentation for this class was generated from the following file: