| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.NodeComponent javax.media.j3d.ShaderProgram javax.media.j3d.GLSLShaderProgram
GLSLShaderProgram | public class GLSLShaderProgram extends ShaderProgram (Code) | | The GLSLShaderProgram object is a concrete implementation of a
ShaderProgram node component for the OpenGL GLSL shading language.
See Also: SourceCodeShader since: Java 3D 1.4 |
Constructor Summary | |
public | GLSLShaderProgram() Constructs a GLSL shader program node component. |
GLSLShaderProgram | public GLSLShaderProgram()(Code) | | Constructs a GLSL shader program node component.
TODO: ADD MORE DOCUMENTATION HERE.
|
createRetained | void createRetained()(Code) | | Creates a retained mode GLSLShaderProgramRetained object that this
GLSLShaderProgram component object will point to.
|
getShaderAttrNames | public String[] getShaderAttrNames()(Code) | | |
getVertexAttrNames | public String[] getVertexAttrNames()(Code) | | |
setShaderAttrNames | public void setShaderAttrNames(String[] shaderAttrNames)(Code) | | |
setShaders | public void setShaders(Shader[] shaders)(Code) | | Copies the specified array of shaders into this shader
program. This method makes a shallow copy of the array. The
array of shaders may be null or empty (0 length), but the
elements of the array must be non-null. The shading language of
each shader in the array must be
SHADING_LANGUAGE_GLSL . Each shader in the array must
be a SourceCodeShader.
Parameters: shaders - array of Shader objects to be copied into thisShaderProgram exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph exception: IllegalArgumentException - if the shading language ofany shader in the shaders array is notSHADING_LANGUAGE_GLSL . exception: ClassCastException - if any shader in the shadersarray is not a SourceCodeShader. exception: NullPointerException - if any element in theshaders array is null. |
setVertexAttrNames | public void setVertexAttrNames(String[] vertexAttrNames)(Code) | | |
Fields inherited from javax.media.j3d.ShaderProgram | final public static int ALLOW_NAMES_READ(Code)(Java Doc) final public static int ALLOW_SHADERS_READ(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.NodeComponent | boolean forceDuplicate(Code)(Java Doc)
|
|
|
|