public class GLSLShaderProgram extends ShaderProgram
SourceCodeShader
ALLOW_NAMES_READ, ALLOW_SHADERS_READ
Constructor and Description |
---|
GLSLShaderProgram()
Constructs a GLSL shader program node component.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getShaderAttrNames()
Retrieves the shader attribute names array from this
ShaderProgram object.
|
Shader[] |
getShaders()
Retrieves the array of shaders from this shader program.
|
String[] |
getVertexAttrNames()
Retrieves the vertex attribute names array from this
ShaderProgram object.
|
void |
setShaderAttrNames(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(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 GLSLShaderProgram()
public void setVertexAttrNames(String[] vertexAttrNames)
ShaderProgram
setVertexAttrNames
in class ShaderProgram
vertexAttrNames
- array of vertex attribute names for this
shader program. A copy of this array is made.public String[] getVertexAttrNames()
ShaderProgram
getVertexAttrNames
in class ShaderProgram
public void setShaderAttrNames(String[] shaderAttrNames)
ShaderProgram
TODO: finish this.
setShaderAttrNames
in class ShaderProgram
shaderAttrNames
- array of shader attribute names for this
shader program. A copy of this array is made.public String[] getShaderAttrNames()
ShaderProgram
getShaderAttrNames
in class ShaderProgram
public void setShaders(Shader[] shaders)
SHADING_LANGUAGE_GLSL
. Each shader in the array must
be a SourceCodeShader.setShaders
in class ShaderProgram
shaders
- 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 graphIllegalArgumentException
- if the shading language of
any shader in the shaders array is not
SHADING_LANGUAGE_GLSL
.ClassCastException
- if any shader in the shaders
array is not a SourceCodeShader.NullPointerException
- if any element in the
shaders array is null.public Shader[] getShaders()
ShaderProgram
getShaders
in class ShaderProgram
Copyright © 2016–2022 SciJava. All rights reserved.