|
||||||||||
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.FragmentProgramState
com.jme.scene.state.jogl.JOGLFragmentProgramState
public final class JOGLFragmentProgramState
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme.scene.state.RenderState |
---|
RenderState.StateType |
Field Summary |
---|
Fields inherited from class com.jme.scene.state.FragmentProgramState |
---|
parameters, program, usingParameters |
Fields inherited from class com.jme.scene.state.RenderState |
---|
QUICK_COMPARE, RS_BLEND, RS_CLIP, RS_COLORMASK_STATE, RS_CULL, 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 | |
---|---|
JOGLFragmentProgramState(JOGLContextCapabilities caps)
|
Method Summary | |
---|---|
void |
apply()
This function is defined in the RenderState that is actually used by the Renderer. |
StateRecord |
createStateRecord()
|
java.lang.String |
getProgram()
|
boolean |
isSupported()
Determines if the current OpenGL context supports the GL_ARB_fragment_program extension. |
void |
load(java.lang.String programContents)
Loads the fragment program into a byte array. |
void |
load(java.net.URL file)
Loads the fragment program into a byte array. |
Methods inherited from class com.jme.scene.state.FragmentProgramState |
---|
getClassTag, getStateType, getType, read, setParameter, write |
Methods inherited from class com.jme.scene.state.RenderState |
---|
extract, isEnabled, needsRefresh, setEnabled, setNeedsRefresh, setQuickCompares |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JOGLFragmentProgramState(JOGLContextCapabilities caps)
Method Detail |
---|
public boolean isSupported()
isSupported
in class FragmentProgramState
FragmentProgramState.isSupported()
public void load(java.net.URL file)
load
in class FragmentProgramState
file
- text file containing the fragment programFragmentProgramState.load(java.net.URL)
public void load(java.lang.String programContents)
load
in class FragmentProgramState
FragmentProgramState.load(java.net.URL)
public java.lang.String getProgram()
getProgram
in class FragmentProgramState
public void apply()
RenderState
apply
in class RenderState
public StateRecord createStateRecord()
createStateRecord
in class RenderState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |