public class CgShaderProgram extends ShaderProgram
SourceCodeShaderALLOW_NAMES_READ, ALLOW_SHADERS_READ| Constructor and Description |
|---|
CgShaderProgram()
Constructs a Cg shader program node component.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
cloneNodeComponent, cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTreeclearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferencespublic CgShaderProgram()
public void setVertexAttrNames(java.lang.String[] vertexAttrNames)
ShaderProgramsetVertexAttrNames in class ShaderProgramvertexAttrNames - array of vertex attribute names for this
shader program. A copy of this array is made.public java.lang.String[] getVertexAttrNames()
ShaderProgramgetVertexAttrNames 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()
ShaderProgramgetShaderAttrNames in class ShaderProgrampublic void setShaders(Shader[] shaders)
SHADING_LANGUAGE_CG. Each shader in the array must
be a SourceCodeShader. There must be no more than one vertex shader
and one fragment shader in the array.setShaders in class ShaderProgramshaders - array of Shader objects to be copied into this
ShaderProgramCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphjava.lang.IllegalArgumentException - if the shading language of
any shader in the shaders array is not
SHADING_LANGUAGE_CG.java.lang.IllegalArgumentException - if there are more than one
vertex shader or more than one fragment shader in the shaders
array.java.lang.ClassCastException - if any shader in the shaders
array is not a SourceCodeShader.public Shader[] getShaders()
ShaderProgramgetShaders in class ShaderProgramCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.