com.jme.scene.state.jogl
Class JOGLFragmentProgramState
java.lang.Object
com.jme.scene.state.RenderState
com.jme.scene.state.FragmentProgramState
com.jme.scene.state.jogl.JOGLFragmentProgramState
- All Implemented Interfaces:
- Savable
public final class JOGLFragmentProgramState
- extends FragmentProgramState
- Version:
- $Id: JOGLFragmentProgramState.java,v 1.1 2004/08/20 23:21:20
ericthered Exp $
- Author:
- Eric Woroshow, Joshua Slack - misc, plus StateRecord code., Steve Vaughan - JOGL port
| 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 |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOGLFragmentProgramState
public JOGLFragmentProgramState()
JOGLFragmentProgramState
public JOGLFragmentProgramState(JOGLContextCapabilities caps)
isSupported
public boolean isSupported()
- Determines if the current OpenGL context supports the
GL_ARB_fragment_program extension.
- Specified by:
isSupported in class FragmentProgramState
- Returns:
- if ARB fragment programs are supported
- See Also:
FragmentProgramState.isSupported()
load
public void load(java.net.URL file)
- Loads the fragment program into a byte array.
- Specified by:
load in class FragmentProgramState
- Parameters:
file - text file containing the fragment program- See Also:
FragmentProgramState.load(java.net.URL)
load
public void load(java.lang.String programContents)
- Loads the fragment program into a byte array.
- Specified by:
load in class FragmentProgramState
- See Also:
FragmentProgramState.load(java.net.URL)
getProgram
public java.lang.String getProgram()
- Specified by:
getProgram in class FragmentProgramState
apply
public void apply()
- Description copied from class:
RenderState
- This function is defined in the RenderState that is actually used by the
Renderer. It contains the code that, when executed, applies the render
state for the given render system. This should only be called internally
and not by users directly.
- Specified by:
apply in class RenderState
createStateRecord
public StateRecord createStateRecord()
- Specified by:
createStateRecord in class RenderState
Copyright 2003-2009 jMonkeyEngine