|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.SceneGraphObject
javax.media.ding3d.NodeComponent
javax.media.ding3d.ShaderProgram
javax.media.ding3d.GLSLShaderProgram
public class GLSLShaderProgram
The GLSLShaderProgram object is a concrete implementation of a ShaderProgram node component for the OpenGL GLSL shading language.
SourceCodeShader| Field Summary |
|---|
| Fields inherited from class javax.media.ding3d.ShaderProgram |
|---|
ALLOW_NAMES_READ, ALLOW_SHADERS_READ |
| Constructor Summary | |
|---|---|
GLSLShaderProgram()
Constructs a GLSL shader program node component. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getShaderAttrNames()
Retrieves the shader attribute names array from this ShaderProgram object. |
Shader[] |
getShaders()
Retrieves the array of shaders from this shader program. |
java.lang.String[] |
getVertexAttrNames()
Retrieves the vertex attribute names array from this ShaderProgram object. |
void |
setShaderAttrNames(java.lang.String[] shaderAttrNames)
Sets the shader attribute names array for this ShaderProgram object. |
void |
setShaders(Shader[] shaders)
Copies the specified array of shaders into this shader program. |
void |
setVertexAttrNames(java.lang.String[] vertexAttrNames)
Sets the vertex attribute names array for this ShaderProgram object. |
| Methods inherited from class javax.media.ding3d.NodeComponent |
|---|
cloneNodeComponent, cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree |
| Methods inherited from class javax.media.ding3d.SceneGraphObject |
|---|
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GLSLShaderProgram()
| Method Detail |
|---|
public void setVertexAttrNames(java.lang.String[] vertexAttrNames)
ShaderProgram
setVertexAttrNames in class ShaderProgramvertexAttrNames - array of vertex attribute names for this
shader program. A copy of this array is made.public java.lang.String[] getVertexAttrNames()
ShaderProgram
getVertexAttrNames in class ShaderProgrampublic void setShaderAttrNames(java.lang.String[] shaderAttrNames)
ShaderProgramTODO: finish this.
setShaderAttrNames in class ShaderProgramshaderAttrNames - array of shader attribute names for this
shader program. A copy of this array is made.public java.lang.String[] getShaderAttrNames()
ShaderProgram
getShaderAttrNames in class ShaderProgrampublic void setShaders(Shader[] shaders)
SHADING_LANGUAGE_GLSL. Each shader in the array must
be a SourceCodeShader.
setShaders in class ShaderProgramshaders - array of Shader objects to be copied into this
ShaderProgram
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graph
java.lang.IllegalArgumentException - if the shading language of
any shader in the shaders array is not
SHADING_LANGUAGE_GLSL.
java.lang.ClassCastException - if any shader in the shaders
array is not a SourceCodeShader.
java.lang.NullPointerException - if any element in the
shaders array is null.public Shader[] getShaders()
ShaderProgram
getShaders in class ShaderProgram
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||