public class FixedFuncUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
mgl_Color
String name for
|
static String |
mgl_MultiTexCoord
String name for
|
static String |
mgl_Normal
String name for
|
static String |
mgl_Vertex
String name for
|
Constructor and Description |
---|
FixedFuncUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getPredefinedArrayIndexName(int glArrayIndex)
Mapping fixed function (client) array indices to
GLSL array attribute names.
|
static GL2ES1 |
wrapFixedFuncEmul(GL gl,
ShaderSelectionMode mode,
PMVMatrix pmvMatrix) |
static GL2ES1 |
wrapFixedFuncEmul(GL gl,
ShaderSelectionMode mode,
PMVMatrix pmvMatrix,
boolean force,
boolean verbose) |
public static final String mgl_Vertex
public static final String mgl_Normal
public static final String mgl_Color
public static final String mgl_MultiTexCoord
public static final GL2ES1 wrapFixedFuncEmul(GL gl, ShaderSelectionMode mode, PMVMatrix pmvMatrix, boolean force, boolean verbose)
gl
- mode
- one of the ShaderSelectionMode
spmvMatrix
- optional pass through PMVMatrix for the FixedFuncHook
and FixedFuncPipeline
GLContext.setGL(GL)
.GLException
- if the GL object is neither GL2ES1 nor GL2ES2ShaderSelectionMode.AUTO
,
ShaderSelectionMode.COLOR
,
ShaderSelectionMode.COLOR_LIGHT_PER_VERTEX
,
ShaderSelectionMode#COLOR_TEXTURE
,
ShaderSelectionMode#COLOR_TEXTURE_LIGHT_PER_VERTEX
public static final GL2ES1 wrapFixedFuncEmul(GL gl, ShaderSelectionMode mode, PMVMatrix pmvMatrix)
gl
- mode
- one of the ShaderSelectionMode
spmvMatrix
- optional pass through PMVMatrix for the FixedFuncHook
and FixedFuncPipeline
GLContext.setGL(GL)
.GLException
- if the GL object is neither GL2ES1 nor GL2ES2ShaderSelectionMode.AUTO
,
ShaderSelectionMode.COLOR
,
ShaderSelectionMode.COLOR_LIGHT_PER_VERTEX
,
ShaderSelectionMode#COLOR_TEXTURE
,
ShaderSelectionMode#COLOR_TEXTURE_LIGHT_PER_VERTEX
public static String getPredefinedArrayIndexName(int glArrayIndex)
mgl_Vertex
,
GLPointerFunc.GL_VERTEX_ARRAY
,
mgl_Normal
,
GLPointerFunc.GL_NORMAL_ARRAY
,
mgl_Color
,
GLPointerFunc.GL_COLOR_ARRAY
,
mgl_MultiTexCoord
,
GLPointerFunc.GL_TEXTURE_COORD_ARRAY
,
GLPointerFunc.glEnableClientState(int)
,
GLPointerFunc.glVertexPointer(com.jogamp.opengl.GLArrayData)
,
GLPointerFunc.glColorPointer(com.jogamp.opengl.GLArrayData)
,
GLPointerFunc.glNormalPointer(com.jogamp.opengl.GLArrayData)
,
GLPointerFunc.glTexCoordPointer(com.jogamp.opengl.GLArrayData)
Copyright 2010 JogAmp Community.