Note
Certain GL FFP state values (e.g.: alphaTestFunc and cullFace) are mapped to a lower number range so they can be stored in low precision storage, i.e. in a 'lowp int' (GL ES2).
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private int | |
| private float | |
| private final int[] | |
| private int | |
| private final FloatBuffer | |
| private boolean | colorVAEnabledDirty
ES2 supports CullFace implicit private int cullFace=-2; // <=0 disabled, 1 GL_FRONT, 2 GL_BACK (default) and 3 GL_FRONT_AND_BACK private boolean cullFaceDirty = false; private static final String mgl_CullFace = "mgl_CullFace"; // 1i (lowp int) |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private ShaderSelectionMode | |
| protected static final boolean | |
| public static final FloatBuffer | |
| public static final float | |
| public static final FloatBuffer | |
| public static final FloatBuffer | |
| public static final float | |
| public static final FloatBuffer | |
| public static final FloatBuffer | |
| public static final FloatBuffer | |
| public static final float | |
| public static final FloatBuffer | |
| public static final FloatBuffer | |
| public static final float | |
| public static final FloatBuffer | |
| public static final float | |
| public static final FloatBuffer | |
| public static final float | |
| private final String | |
| private static final String | |
| private final String | |
| private static final String | |
| private static final GLRunnable2 | |
| private boolean | |
| private final IntBuffer | |
| private boolean | |
| public static final int | |
| public static final int | MAX_TEXTURE_UNITS
The maximum texture units which could be used, depending on |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final FloatBuffer | |
| private static final FloatBuffer | |
| private PMVMatrix | |
| private final FloatBuffer | pointParams
( pointSize, pointSmooth, attn. |
| private boolean | |
| private ShaderSelectionMode | |
| private final String | |
| private static final String | |
| private static final String | |
| private ShaderProgram | |
| private ShaderProgram | |
| private ShaderProgram | |
| private ShaderProgram | |
| private ShaderProgram | |
| private ShaderProgram | |
| private ShaderProgram | |
| private final Class | |
| private final String | |
| private static final String | |
| private ShaderState | |
| private final IntIntHashMap | |
| private final IntBuffer | |
| private boolean | |
| private final IntBuffer | |
| private int | |
| private boolean | |
| private final IntBuffer | |
| private boolean | |
| private final IntBuffer | |
| private boolean | |
| protected boolean | |
| private final String | |
| private static final String | |
| private final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | FixedFuncPipeline(final GL2ES2 gl, final ShaderSelectionMode mode, final PMVMatrix pmvMatrix, final Class<?> shaderRootClass, final String shaderSrcRoot, final String shaderBinRoot, final String vertexColorFile, final String vertexColorLightFile, final String fragmentColorFile, final String fragmentColorTextureFile)
|
| Modifier and Type | Method and Description |
|---|---|
| private final void | customizeShader(final GL2ES2 gl, final ShaderCode vp, final ShaderCode fp, final String maxTextureDefine)
|
| public void | |
| public int | |
| public ShaderSelectionMode | |
| public ShaderSelectionMode | |
| public ShaderState | |
| public void | |
| public void | glAlphaFunc(final int func, final float ref)
ES2 supports CullFace implicit public void glCullFace(int faceName) { int _cullFace; switch(faceName) { case GL.GL_FRONT: _cullFace = 1; break; case GL.GL_BACK: _cullFace = 2; break; case GL.GL_FRONT_AND_BACK: _cullFace = 3; break; default: throw new GLException("glCullFace invalid faceName: "+toHexString(faceName)); } if(0 < _cullFace) { if(0>cullFace) { _cullFace *= -1; } if(cullFace != _cullFace) { cullFace = _cullFace; cullFaceDirty=true; } } } |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | glDrawElements(final GL2ES2 gl, final int mode, final int count, final int type, final Buffer indices)
|
| public void | glDrawElements(final GL2ES2 gl, final int mode, final int count, final int type, final long indices_buffer_offset)
|
| private final void | |
| private void | |
| public boolean | Returns: false if digested in regard to GL2ES2 spec, eg this call must not be passed to an underlying ES2 implementation. true if this call shall be passed to an underlying GL2ES2/ES2 implementation as well.
|
| public void | |
| private boolean | glEnableTexture(final boolean enable, final int unit)
Enables/Disables the named texture unit (if changed), returns previous state |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| public void | |
| private void | |
| public boolean | |
| private final void | |
| private final void | |
| private ShaderProgram | |
| public void | |
| private void | |
| public void | |
| private final int | |
| private String | |
| public StringBuilder | |
| public String | |
| public void | |
| public boolean |
| activeTextureUnit | back to summary |
|---|---|
| private int activeTextureUnit | |
| alphaTestDirty | back to summary |
|---|---|
| private boolean alphaTestDirty | |
| alphaTestFunc | back to summary |
|---|---|
| private int alphaTestFunc | |
| alphaTestRef | back to summary |
|---|---|
| private float alphaTestRef | |
| boundTextureObject | back to summary |
|---|---|
| private final int[] boundTextureObject | |
| clientActiveTextureUnit | back to summary |
|---|---|
| private int clientActiveTextureUnit | |
| colorStatic | back to summary |
|---|---|
| private final FloatBuffer colorStatic | |
| colorVAEnabledDirty | back to summary |
|---|---|
| private boolean colorVAEnabledDirty ES2 supports CullFace implicit private int cullFace=-2; // <=0 disabled, 1 GL_FRONT, 2 GL_BACK (default) and 3 GL_FRONT_AND_BACK private boolean cullFaceDirty = false; private static final String mgl_CullFace = "mgl_CullFace"; // 1i (lowp int) | |
| constMaxTextures0 | back to summary |
|---|---|
| private static final String constMaxTextures0 | |
| constMaxTextures2 | back to summary |
|---|---|
| private static final String constMaxTextures2 | |
| constMaxTextures4 | back to summary |
|---|---|
| private static final String constMaxTextures4 | |
| constMaxTextures8 | back to summary |
|---|---|
| private static final String constMaxTextures8 | |
| currentShaderSelectionMode | back to summary |
|---|---|
| private ShaderSelectionMode currentShaderSelectionMode | |
| DEBUG | back to summary |
|---|---|
| protected static final boolean DEBUG | |
| defAmbient | back to summary |
|---|---|
| public static final FloatBuffer defAmbient | |
| defConstantAtten | back to summary |
|---|---|
| public static final float defConstantAtten | |
| defDiffuseN | back to summary |
|---|---|
| public static final FloatBuffer defDiffuseN | |
| defLightModelAmbient | back to summary |
|---|---|
| public static final FloatBuffer defLightModelAmbient | |
| defLinearAtten | back to summary |
|---|---|
| public static final float defLinearAtten | |
| defMatAmbient | back to summary |
|---|---|
| public static final FloatBuffer defMatAmbient | |
| defMatDiffuse | back to summary |
|---|---|
| public static final FloatBuffer defMatDiffuse | |
| defMatEmission | back to summary |
|---|---|
| public static final FloatBuffer defMatEmission | |
| defMatShininess | back to summary |
|---|---|
| public static final float defMatShininess | |
| defMatSpecular | back to summary |
|---|---|
| public static final FloatBuffer defMatSpecular | |
| defPosition | back to summary |
|---|---|
| public static final FloatBuffer defPosition | |
| defQuadraticAtten | back to summary |
|---|---|
| public static final float defQuadraticAtten | |
| defSpecularN | back to summary |
|---|---|
| public static final FloatBuffer defSpecularN | |
| defSpotCutoff | back to summary |
|---|---|
| public static final float defSpotCutoff | |
| defSpotDir | back to summary |
|---|---|
| public static final FloatBuffer defSpotDir | |
| defSpotExponent | back to summary |
|---|---|
| public static final float defSpotExponent | |
| fragmentColorFile | back to summary |
|---|---|
| private final String fragmentColorFile | |
| fragmentColorFileDef | back to summary |
|---|---|
| private static final String fragmentColorFileDef | |
| fragmentColorTextureFile | back to summary |
|---|---|
| private final String fragmentColorTextureFile | |
| fragmentColorTextureFileDef | back to summary |
|---|---|
| private static final String fragmentColorTextureFileDef | |
| glDrawArraysAction | back to summary |
|---|---|
| private static final GLRunnable2<Object, Object> glDrawArraysAction | |
| lightingEnabled | back to summary |
|---|---|
| private boolean lightingEnabled | |
| lightsEnabled | back to summary |
|---|---|
| private final IntBuffer lightsEnabled | |
| lightsEnabledDirty | back to summary |
|---|---|
| private boolean lightsEnabledDirty | |
| MAX_LIGHTS | back to summary |
|---|---|
| public static final int MAX_LIGHTS | |
| MAX_TEXTURE_UNITS | back to summary |
|---|---|
| public static final int MAX_TEXTURE_UNITS The maximum texture units which could be used, depending on | |
| mgl_AlphaTestFunc | back to summary |
|---|---|
| private static final String mgl_AlphaTestFunc | |
| mgl_AlphaTestRef | back to summary |
|---|---|
| private static final String mgl_AlphaTestRef | |
| mgl_ColorEnabled | back to summary |
|---|---|
| private static final String mgl_ColorEnabled | |
| mgl_ColorStatic | back to summary |
|---|---|
| private static final String mgl_ColorStatic | |
| mgl_FrontMaterial | back to summary |
|---|---|
| private static final String mgl_FrontMaterial | |
| mgl_LightModel | back to summary |
|---|---|
| private static final String mgl_LightModel | |
| mgl_LightsEnabled | back to summary |
|---|---|
| private static final String mgl_LightsEnabled | |
| mgl_LightSource | back to summary |
|---|---|
| private static final String mgl_LightSource | |
| mgl_PMVMatrix | back to summary |
|---|---|
| private static final String mgl_PMVMatrix | |
| mgl_PointParams | back to summary |
|---|---|
| private static final String mgl_PointParams | |
| mgl_ShadeModel | back to summary |
|---|---|
| private static final String mgl_ShadeModel | |
| mgl_TexCoordEnabled | back to summary |
|---|---|
| private static final String mgl_TexCoordEnabled | |
| mgl_TexEnvMode | back to summary |
|---|---|
| private static final String mgl_TexEnvMode | |
| mgl_TexFormat | back to summary |
|---|---|
| private static final String mgl_TexFormat | |
| mgl_Texture | back to summary |
|---|---|
| private static final String mgl_Texture | |
| mgl_TextureEnabled | back to summary |
|---|---|
| private static final String mgl_TextureEnabled | |
| neut4f | back to summary |
|---|---|
| private static final FloatBuffer neut4f | |
| one4f | back to summary |
|---|---|
| private static final FloatBuffer one4f | |
| pmvMatrix | back to summary |
|---|---|
| private PMVMatrix pmvMatrix | |
| pointParams | back to summary |
|---|---|
| private final FloatBuffer pointParams ( pointSize, pointSmooth, attn. pointMinSize, attn. pointMaxSize ) , ( attenuation coefficients 1f 0f 0f, attenuation fade theshold 1f ) | |
| pointParamsDirty | back to summary |
|---|---|
| private boolean pointParamsDirty | |
| requestedShaderSelectionMode | back to summary |
|---|---|
| private ShaderSelectionMode requestedShaderSelectionMode | |
| shaderBinRoot | back to summary |
|---|---|
| private final String shaderBinRoot | |
| shaderBinRootDef | back to summary |
|---|---|
| private static final String shaderBinRootDef | |
| shaderPointFileDef | back to summary |
|---|---|
| private static final String shaderPointFileDef | |
| shaderProgramColor | back to summary |
|---|---|
| private ShaderProgram shaderProgramColor | |
| shaderProgramColorLight | back to summary |
|---|---|
| private ShaderProgram shaderProgramColorLight | |
| shaderProgramColorTexture2 | back to summary |
|---|---|
| private ShaderProgram shaderProgramColorTexture2 | |
| shaderProgramColorTexture4 | back to summary |
|---|---|
| private ShaderProgram shaderProgramColorTexture4 | |
| shaderProgramColorTexture8 | back to summary |
|---|---|
| private ShaderProgram shaderProgramColorTexture8 | |
| shaderProgramColorTexture8Light | back to summary |
|---|---|
| private ShaderProgram shaderProgramColorTexture8Light | |
| shaderProgramPoints | back to summary |
|---|---|
| private ShaderProgram shaderProgramPoints | |
| shaderRootClass | back to summary |
|---|---|
| private final Class<?> shaderRootClass | |
| shaderSrcRoot | back to summary |
|---|---|
| private final String shaderSrcRoot | |
| shaderSrcRootDef | back to summary |
|---|---|
| private static final String shaderSrcRootDef | |
| shaderState | back to summary |
|---|---|
| private ShaderState shaderState | |
| texID2Format | back to summary |
|---|---|
| private final IntIntHashMap texID2Format | |
| textureCoordEnabled | back to summary |
|---|---|
| private final IntBuffer textureCoordEnabled | |
| textureCoordEnabledDirty | back to summary |
|---|---|
| private boolean textureCoordEnabledDirty | |
| textureEnabled | back to summary |
|---|---|
| private final IntBuffer textureEnabled | |
| textureEnabledBits | back to summary |
|---|---|
| private int textureEnabledBits | |
| textureEnabledDirty | back to summary |
|---|---|
| private boolean textureEnabledDirty | |
| textureEnvMode | back to summary |
|---|---|
| private final IntBuffer textureEnvMode | |
| textureEnvModeDirty | back to summary |
|---|---|
| private boolean textureEnvModeDirty | |
| textureFormat | back to summary |
|---|---|
| private final IntBuffer textureFormat | |
| textureFormatDirty | back to summary |
|---|---|
| private boolean textureFormatDirty | |
| verbose | back to summary |
|---|---|
| protected boolean verbose | |
| vertexColorFile | back to summary |
|---|---|
| private final String vertexColorFile | |
| vertexColorFileDef | back to summary |
|---|---|
| private static final String vertexColorFileDef | |
| vertexColorLightFile | back to summary |
|---|---|
| private final String vertexColorLightFile | |
| vertexColorLightFileDef | back to summary |
|---|---|
| private static final String vertexColorLightFileDef | |
| FixedFuncPipeline | back to summary |
|---|---|
| public FixedFuncPipeline(final GL2ES2 gl, final ShaderSelectionMode mode, final PMVMatrix pmvMatrix) | |
| FixedFuncPipeline | back to summary |
|---|---|
| public FixedFuncPipeline(final GL2ES2 gl, final ShaderSelectionMode mode, final PMVMatrix pmvMatrix, final Class<?> shaderRootClass, final String shaderSrcRoot, final String shaderBinRoot, final String vertexColorFile, final String vertexColorLightFile, final String fragmentColorFile, final String fragmentColorTextureFile) | |
| customizeShader | back to summary |
|---|---|
| private final void customizeShader(final GL2ES2 gl, final ShaderCode vp, final ShaderCode fp, final String maxTextureDefine) | |
| destroy | back to summary |
|---|---|
| public void destroy(final GL2ES2 gl) | |
| getActiveTextureUnit | back to summary |
|---|---|
| public int getActiveTextureUnit() | |
| getCurrentShaderSelectionMode | back to summary |
|---|---|
| public ShaderSelectionMode getCurrentShaderSelectionMode() | |
| getShaderSelectionMode | back to summary |
|---|---|
| public ShaderSelectionMode getShaderSelectionMode() | |
| getShaderState | back to summary |
|---|---|
| public ShaderState getShaderState() | |
| glActiveTexture | back to summary |
|---|---|
| public void glActiveTexture(int textureUnit) | |
| glAlphaFunc | back to summary |
|---|---|
| public void glAlphaFunc(final int func, final float ref) ES2 supports CullFace implicit public void glCullFace(int faceName) { int _cullFace; switch(faceName) { case GL.GL_FRONT: _cullFace = 1; break; case GL.GL_BACK: _cullFace = 2; break; case GL.GL_FRONT_AND_BACK: _cullFace = 3; break; default: throw new GLException("glCullFace invalid faceName: "+toHexString(faceName)); } if(0 < _cullFace) { if(0>cullFace) { _cullFace *= -1; } if(cullFace != _cullFace) { cullFace = _cullFace; cullFaceDirty=true; } } } | |
| glBindTexture | back to summary |
|---|---|
| public void glBindTexture(final int target, final int texture) | |
| glClientActiveTexture | back to summary |
|---|---|
| public void glClientActiveTexture(int textureUnit) | |
| glColor4f | back to summary |
|---|---|
| public void glColor4f(final GL2ES2 gl, final float red, final float green, final float blue, final float alpha) | |
| glColorPointer | back to summary |
|---|---|
| public void glColorPointer(final GL2ES2 gl, final GLArrayData data) | |
| glDisableClientState | back to summary |
|---|---|
| public void glDisableClientState(final GL2ES2 gl, final int glArrayIndex) | |
| glDrawArrays | back to summary |
|---|---|
| public void glDrawArrays(final GL2ES2 gl, int mode, final int first, final int count) | |
| glDrawElements | back to summary |
|---|---|
| public void glDrawElements(final GL2ES2 gl, final int mode, final int count, final int type, final Buffer indices) | |
| glDrawElements | back to summary |
|---|---|
| public void glDrawElements(final GL2ES2 gl, final int mode, final int count, final int type, final long indices_buffer_offset) | |
| glDrawPointArrays | back to summary |
|---|---|
| private final void glDrawPointArrays(final GL2ES2 gl, final int first, final int count) | |
| glDrawPoints | back to summary |
|---|---|
| private void glDrawPoints(final GL2ES2 gl, final GLRunnable2<Object, Object> glDrawAction, final Object args) | |
| glEnable | back to summary |
|---|---|
public boolean glEnable(final int cap, final boolean enable)
| |
| glEnableClientState | back to summary |
|---|---|
| public void glEnableClientState(final GL2ES2 gl, final int glArrayIndex) | |
| glEnableTexture | back to summary |
|---|---|
| private boolean glEnableTexture(final boolean enable, final int unit) Enables/Disables the named texture unit (if changed), returns previous state | |
| glGetTexEnviv | back to summary |
|---|---|
| public void glGetTexEnviv(final int target, final int pname, final IntBuffer params) | |
| glGetTexEnviv | back to summary |
|---|---|
| public void glGetTexEnviv(final int target, final int pname, final int[] params, final int params_offset) | |
| glLightfv | back to summary |
|---|---|
| public void glLightfv(final GL2ES2 gl, int light, final int pname, final FloatBuffer params) | |
| glMaterialfv | back to summary |
|---|---|
| public void glMaterialfv(final GL2ES2 gl, final int face, final int pname, final FloatBuffer params) | |
| glNormalPointer | back to summary |
|---|---|
| public void glNormalPointer(final GL2ES2 gl, final GLArrayData data) | |
| glPointParameterf | back to summary |
|---|---|
| public void glPointParameterf(final int pname, final float param) | |
| glPointParameterfv | back to summary |
|---|---|
| public void glPointParameterfv(final int pname, final float[] params, final int params_offset) | |
| glPointParameterfv | back to summary |
|---|---|
| public void glPointParameterfv(final int pname, final FloatBuffer params) | |
| glPointSize | back to summary |
|---|---|
| public void glPointSize(final float size) | |
| glShadeModel | back to summary |
|---|---|
| public void glShadeModel(final GL2ES2 gl, final int mode) | |
| glTexCoordPointer | back to summary |
|---|---|
| public void glTexCoordPointer(final GL2ES2 gl, final GLArrayData data) | |
| glTexEnvi | back to summary |
|---|---|
| public void glTexEnvi(final int target, final int pname, final int value) | |
| glTexImage2D | back to summary |
|---|---|
| public void glTexImage2D(final int target, final int internalformat, final int format) | |
| glToggleClientState | back to summary |
|---|---|
| private void glToggleClientState(final GL2ES2 gl, final int glArrayIndex, final boolean enable) | |
| glVertexPointer | back to summary |
|---|---|
| public void glVertexPointer(final GL2ES2 gl, final GLArrayData data) | |
| init | back to summary |
|---|---|
| private void init(final GL2ES2 gl, final ShaderSelectionMode mode, final PMVMatrix pmvMatrix) | |
| isValid | back to summary |
|---|---|
| public boolean isValid() | |
| loadShader | back to summary |
|---|---|
| private final void loadShader(final GL2ES2 gl, final ShaderSelectionMode mode) | |
| loadShaderPoints | back to summary |
|---|---|
| private final void loadShaderPoints(final GL2ES2 gl) | |
| selectShaderProgram | back to summary |
|---|---|
| private ShaderProgram selectShaderProgram(final GL2ES2 gl, ShaderSelectionMode newMode) | |
| setShaderSelectionMode | back to summary |
|---|---|
| public void setShaderSelectionMode(final ShaderSelectionMode mode) | |
| setTextureEnvMode | back to summary |
|---|---|
| private void setTextureEnvMode(final int value) | |
| setVerbose | back to summary |
|---|---|
| public void setVerbose(final boolean v) | |
| textureEnabledCount | back to summary |
|---|---|
| private final int textureEnabledCount() | |
| toHexString | back to summary |
|---|---|
| private String toHexString(final int i) | |
| toString | back to summary |
|---|---|
| public StringBuilder toString(StringBuilder sb, final boolean alsoUnlocated) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validate | back to summary |
|---|---|
| public void validate(final GL2ES2 gl, final boolean selectShader) | |
| verbose | back to summary |
|---|---|
| public boolean verbose() | |