public abstract class ShaderProgram extends NodeComponent
NOTE: Applications should not extend this class.
Shader
,
ShaderAppearance.setShaderProgram(org.scijava.java3d.ShaderProgram)
Modifier and Type | Field and 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 and Description |
---|---|
abstract 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 String[] |
getVertexAttrNames()
Retrieves the vertex attribute names array from this
ShaderProgram object.
|
abstract void |
setShaderAttrNames(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(String[] vertexAttrNames)
Sets the vertex attribute names array for this ShaderProgram
object.
|
cloneNodeComponent, cloneNodeComponent, duplicateNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree
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(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.NullPointerException
- if any element in the
vertexAttrNames array is null.public abstract String[] getVertexAttrNames()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphpublic abstract void setShaderAttrNames(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.NullPointerException
- if any element in the
shaderAttrNames array is null.public abstract 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.IllegalArgumentException
- if the shading language of
any shader in the shaders array doesn't match the type of the
subclass.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 © 2016–2022 SciJava. All rights reserved.