|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.state.RenderState
com.jme.scene.state.VertexProgramState
Implementation of the GL_ARB_vertex_program extension.
| Field Summary | |
protected static float[][] |
envparameters
Environmental parameters applied to all vertex programs |
protected float[][] |
parameters
Parameters local to this vertex program |
protected boolean |
usingParameters
If any local parameters for this VP state are set |
| Fields inherited from class com.jme.scene.state.RenderState |
RS_ALPHA, RS_ATTRIBUTE, RS_CULL, RS_DITHER, RS_FOG, RS_FRAGMENT_PROGRAM, RS_GLSL_SHADER_OBJECTS, RS_LIGHT, RS_MATERIAL, RS_MAX_STATE, RS_SHADE, RS_STENCIL, RS_TEXTURE, RS_VERTEX_PROGRAM, RS_WIREFRAME, RS_ZBUFFER |
| Constructor Summary | |
VertexProgramState()
Creates a new VertexProgramState. |
|
| Method Summary | |
int |
getType()
Defined by the subclass, this returns an int identifying the renderstate. |
abstract boolean |
isSupported()
isSupported determines if the ARB_vertex_program extension
is supported by current graphics configuration. |
abstract void |
load(java.net.URL file)
load loads the vertex program from the specified file. |
static void |
setEnvParameter(float[] param,
int paramID)
setEnvParameter sets an environmental vertex program
parameter that is accessable by all vertex programs in memory. |
void |
setParameter(float[] param,
int paramID)
setParameter sets a parameter for this vertex program. |
| Methods inherited from class com.jme.scene.state.RenderState |
apply, extract, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static float[][] envparameters
protected boolean usingParameters
protected float[][] parameters
| Constructor Detail |
public VertexProgramState()
load(URL) must be called before
the state can be used.
| Method Detail |
public static void setEnvParameter(float[] param,
int paramID)
setEnvParameter sets an environmental vertex program
parameter that is accessable by all vertex programs in memory.
param - four-element array of floating point numbersparamID - identity number of the parameter, ranging from 0 to 95public abstract boolean isSupported()
isSupported determines if the ARB_vertex_program extension
is supported by current graphics configuration.
public void setParameter(float[] param,
int paramID)
setParameter sets a parameter for this vertex program.
paramID - identity number of the parameter, ranging from 0 to 95param - four-element array of floating point numberspublic int getType()
RenderState
getType in class RenderStateRenderState.getType()public abstract void load(java.net.URL file)
load loads the vertex program from the specified file.
The program must be in ASCII format. We delegate the loading to each
implementation because we do not know in what format the underlying API
wants the data.
file - text file containing the vertex program
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||