com.jogamp.opengl.util.glsl.fixedfunc.impl
Class FixedFuncPipeline

java.lang.Object
  extended by com.jogamp.opengl.util.glsl.fixedfunc.impl.FixedFuncPipeline

public class FixedFuncPipeline
extends Object


Field Summary
static FloatBuffer defAmbient
           
static float defConstantAtten
           
static FloatBuffer defDiffuse
           
static float defLinearAtten
           
static FloatBuffer defMatAmbient
           
static FloatBuffer defMatDiffuse
           
static FloatBuffer defMatEmission
           
static float defMatShininess
           
static FloatBuffer defMatSpecular
           
static FloatBuffer defPosition
           
static float defQuadraticAtten
           
static FloatBuffer defSpecular
           
static float defSpotCutoff
           
static FloatBuffer defSpotDir
           
static float defSpotExponent
           
static int MAX_LIGHTS
           
static int MAX_TEXTURE_UNITS
           
static String mgl_Color
           
static String mgl_MultiTexCoord
           
static String mgl_Normal
           
static String mgl_Vertex
           
 
Constructor Summary
FixedFuncPipeline(GL2ES2 gl, PMVMatrix pmvMatrix)
           
FixedFuncPipeline(GL2ES2 gl, PMVMatrix pmvMatrix, Class shaderRootClass, String shaderSrcRoot, String shaderBinRoot, String vertexColorFile, String vertexColorLightFile, String fragmentColorFile, String fragmentColorTextureFile)
           
 
Method Summary
 void destroy(GL2ES2 gl)
           
 int getActiveTextureUnit()
           
 String getArrayIndexName(int glArrayIndex)
           
static String getPredefinedArrayIndexName(int glArrayIndex)
           
 ShaderState getShaderState()
           
 void glActiveTexture(GL2ES2 gl, int textureUnit)
           
 void glColor4fv(GL2ES2 gl, FloatBuffer data)
           
 void glColorPointer(GL2ES2 gl, GLArrayData data)
           
 void glCullFace(GL2ES2 gl, int faceName)
           
 void glDisableClientState(GL2ES2 gl, int glArrayIndex)
           
 boolean glEnable(GL2ES2 gl, int cap, boolean enable)
           
 void glEnableClientState(GL2ES2 gl, int glArrayIndex)
           
 void glLightfv(GL2ES2 gl, int light, int pname, FloatBuffer params)
           
 void glMaterialfv(GL2ES2 gl, int face, int pname, FloatBuffer params)
           
 void glNormalPointer(GL2ES2 gl, GLArrayData data)
           
 void glShadeModel(GL2ES2 gl, int mode)
           
 void glTexCoordPointer(GL2ES2 gl, GLArrayData data)
           
 void glVertexPointer(GL2ES2 gl, GLArrayData data)
           
 boolean isValid()
           
 void setVerbose(boolean v)
           
 String toString()
           
 void validate(GL2ES2 gl)
           
 boolean verbose()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_TEXTURE_UNITS

public static final int MAX_TEXTURE_UNITS
See Also:
Constant Field Values

MAX_LIGHTS

public static final int MAX_LIGHTS
See Also:
Constant Field Values

mgl_Vertex

public static final String mgl_Vertex
See Also:
Constant Field Values

mgl_Normal

public static final String mgl_Normal
See Also:
Constant Field Values

mgl_Color

public static final String mgl_Color
See Also:
Constant Field Values

mgl_MultiTexCoord

public static final String mgl_MultiTexCoord
See Also:
Constant Field Values

defAmbient

public static final FloatBuffer defAmbient

defDiffuse

public static final FloatBuffer defDiffuse

defSpecular

public static final FloatBuffer defSpecular

defPosition

public static final FloatBuffer defPosition

defSpotDir

public static final FloatBuffer defSpotDir

defSpotExponent

public static final float defSpotExponent
See Also:
Constant Field Values

defSpotCutoff

public static final float defSpotCutoff
See Also:
Constant Field Values

defConstantAtten

public static final float defConstantAtten
See Also:
Constant Field Values

defLinearAtten

public static final float defLinearAtten
See Also:
Constant Field Values

defQuadraticAtten

public static final float defQuadraticAtten
See Also:
Constant Field Values

defMatAmbient

public static final FloatBuffer defMatAmbient

defMatDiffuse

public static final FloatBuffer defMatDiffuse

defMatSpecular

public static final FloatBuffer defMatSpecular

defMatEmission

public static final FloatBuffer defMatEmission

defMatShininess

public static final float defMatShininess
See Also:
Constant Field Values
Constructor Detail

FixedFuncPipeline

public FixedFuncPipeline(GL2ES2 gl,
                         PMVMatrix pmvMatrix)

FixedFuncPipeline

public FixedFuncPipeline(GL2ES2 gl,
                         PMVMatrix pmvMatrix,
                         Class shaderRootClass,
                         String shaderSrcRoot,
                         String shaderBinRoot,
                         String vertexColorFile,
                         String vertexColorLightFile,
                         String fragmentColorFile,
                         String fragmentColorTextureFile)
Method Detail

getPredefinedArrayIndexName

public static String getPredefinedArrayIndexName(int glArrayIndex)

verbose

public boolean verbose()

setVerbose

public void setVerbose(boolean v)

isValid

public boolean isValid()

getShaderState

public ShaderState getShaderState()

getActiveTextureUnit

public int getActiveTextureUnit()

getArrayIndexName

public String getArrayIndexName(int glArrayIndex)

destroy

public void destroy(GL2ES2 gl)

glEnableClientState

public void glEnableClientState(GL2ES2 gl,
                                int glArrayIndex)

glDisableClientState

public void glDisableClientState(GL2ES2 gl,
                                 int glArrayIndex)

glVertexPointer

public void glVertexPointer(GL2ES2 gl,
                            GLArrayData data)

glColorPointer

public void glColorPointer(GL2ES2 gl,
                           GLArrayData data)

glColor4fv

public void glColor4fv(GL2ES2 gl,
                       FloatBuffer data)

glNormalPointer

public void glNormalPointer(GL2ES2 gl,
                            GLArrayData data)

glTexCoordPointer

public void glTexCoordPointer(GL2ES2 gl,
                              GLArrayData data)

glLightfv

public void glLightfv(GL2ES2 gl,
                      int light,
                      int pname,
                      FloatBuffer params)

glMaterialfv

public void glMaterialfv(GL2ES2 gl,
                         int face,
                         int pname,
                         FloatBuffer params)

glShadeModel

public void glShadeModel(GL2ES2 gl,
                         int mode)

glActiveTexture

public void glActiveTexture(GL2ES2 gl,
                            int textureUnit)

glEnable

public boolean glEnable(GL2ES2 gl,
                        int cap,
                        boolean enable)
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.

glCullFace

public void glCullFace(GL2ES2 gl,
                       int faceName)

validate

public void validate(GL2ES2 gl)

toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 JogAmp Community.