| |
|
| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.NodeComponent javax.media.j3d.ShaderProgram javax.media.j3d.CgShaderProgram
CgShaderProgram | public class CgShaderProgram extends ShaderProgram (Code) | | The CgShaderProgram object is a concrete implementation of a
ShaderProgram node component for NVIDIA's Cg shader language.
See Also: SourceCodeShader since: Java 3D 1.4 |
Constructor Summary | |
public | CgShaderProgram() Constructs a Cg shader program node component. |
CgShaderProgram | public CgShaderProgram()(Code) | | Constructs a Cg shader program node component.
TODO: ADD MORE DOCUMENTATION HERE.
|
createRetained | void createRetained()(Code) | | Creates a retained mode CgShaderProgramRetained object that this
CgShaderProgram component object will point to.
|
getShaderAttrNames | public String[] getShaderAttrNames()(Code) | | |
getVertexAttrNames | public String[] getVertexAttrNames()(Code) | | |
setShaderAttrNames | public void setShaderAttrNames(String[] shaderAttrNames)(Code) | | |
setShaders | public void setShaders(Shader[] shaders)(Code) | | Copies the specified array of shaders into this shader
program. This method makes a shallow copy of the array. The
array of shaders may be null or empty (0 length), but the
elements of the array must be non-null. The shading language of
each shader in the array must be
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.
Parameters: shaders - array of Shader objects to be copied into thisShaderProgram exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph exception: IllegalArgumentException - if the shading language ofany shader in the shaders array is notSHADING_LANGUAGE_CG . exception: IllegalArgumentException - if there are more than onevertex shader or more than one fragment shader in the shadersarray. exception: ClassCastException - if any shader in the shadersarray is not a SourceCodeShader. |
setVertexAttrNames | public void setVertexAttrNames(String[] vertexAttrNames)(Code) | | |
Fields inherited from javax.media.j3d.ShaderProgram | final public static int ALLOW_NAMES_READ(Code)(Java Doc) final public static int ALLOW_SHADERS_READ(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.NodeComponent | boolean forceDuplicate(Code)(Java Doc)
|
|
|
|