CgShaderProgram
, GLSLShaderProgram
public abstract class ShaderProgram extends NodeComponent
NOTE: Applications should not extend this class.
Shader
,
ShaderAppearance.setShaderProgram(javax.media.j3d.ShaderProgram)
Modifier and Type | Field | Description |
---|---|---|
static int |
ALLOW_NAMES_READ |
Specifies that this ShaderProgram object allows reading
its shader or vertex attribute names.
|
static int |
ALLOW_SHADERS_READ |
Specifies that this ShaderProgram object allows reading
its shaders.
|
Modifier and Type | Method | Description |
---|---|---|
abstract java.lang.String[] |
getShaderAttrNames() |
Retrieves the shader attribute names array from this
ShaderProgram object.
|
abstract Shader[] |
getShaders() |
Retrieves the array of shaders from this shader program.
|
abstract java.lang.String[] |
getVertexAttrNames() |
Retrieves the vertex attribute names array from this
ShaderProgram object.
|
abstract void |
setShaderAttrNames(java.lang.String[] shaderAttrNames) |
Sets the shader attribute names array for this ShaderProgram
object.
|
abstract void |
setShaders(Shader[] shaders) |
Copies the specified array of shaders into this shader
program.
|
abstract void |
setVertexAttrNames(java.lang.String[] vertexAttrNames) |
Sets the vertex attribute names array for this ShaderProgram
object.
|
cloneNodeComponent, cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
public static final int ALLOW_SHADERS_READ
public static final int ALLOW_NAMES_READ
public abstract void setVertexAttrNames(java.lang.String[] vertexAttrNames)
vertexAttrNames
- array of vertex attribute names for this
shader program. A copy of this array is made.RestrictedAccessException
- if the method is called
when this object is part of live or compiled scene graph.java.lang.NullPointerException
- if any element in the
vertexAttrNames array is null.public abstract java.lang.String[] getVertexAttrNames()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphpublic abstract void setShaderAttrNames(java.lang.String[] shaderAttrNames)
TODO: finish this.
shaderAttrNames
- array of shader attribute names for this
shader program. A copy of this array is made.RestrictedAccessException
- if the method is called
when this object is part of live or compiled scene graph.java.lang.NullPointerException
- if any element in the
shaderAttrNames array is null.public abstract java.lang.String[] getShaderAttrNames()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphpublic abstract void setShaders(Shader[] shaders)
shaders
- array of Shader objects to be copied into this
ShaderProgramRestrictedAccessException
- if the method is called
when this object is part of live or compiled scene graph.java.lang.IllegalArgumentException
- if the shading language of
any shader in the shaders array doesn't match the type of the
subclass.java.lang.NullPointerException
- if any element in the
shaders array is null.public abstract Shader[] getShaders()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.