javax.media.j3d
Class ShaderAttributeBindingRetained
java.lang.Object
javax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.ShaderAttributeRetained
javax.media.j3d.ShaderAttributeBindingRetained
- All Implemented Interfaces:
- java.lang.Cloneable
class ShaderAttributeBindingRetained
- extends ShaderAttributeRetained
The ShaderAttributeBinding object encapsulates a uniform attribute
whose value is bound to a Java 3D system attribute. The
shader variable attrName
is implicitly set to the
value of the corresponding Java 3D system attribute
j3dAttrName
during rendering. attrName
must be the name of a valid uniform attribute in the shader in
which it is used. Otherwise, the attribute name will be ignored and
a runtime error may be generated. j3dAttrName
must be
the name of a predefined Java 3D system attribute. An
IllegalArgumentException will be thrown if the specified
j3dAttrName
is not one of the predefined system
attributes. Further, the type of the j3dAttrName
attribute must match the type of the corresponding
attrName
variable in the shader in which it is
used. Otherwise, the shader will not be able to use the attribute
and a runtime error may be generated.
Field Summary |
(package private) java.lang.String |
j3dAttrName
|
Method Summary |
(package private) java.lang.String |
getJ3DAttributeName()
Retrieves the name of the Java 3D system attribute that is bound to this
shader attribute. |
(package private) void |
initJ3dAttrName(java.lang.String j3dAttrName)
|
Methods inherited from class javax.media.j3d.NodeComponentRetained |
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, createMirrorObject, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLive, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, handleFrequencyChange, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
j3dAttrName
java.lang.String j3dAttrName
ShaderAttributeBindingRetained
ShaderAttributeBindingRetained()
initJ3dAttrName
void initJ3dAttrName(java.lang.String j3dAttrName)
getJ3DAttributeName
java.lang.String getJ3DAttributeName()
- Retrieves the name of the Java 3D system attribute that is bound to this
shader attribute.
- Returns:
- the name of the Java 3D system attribute that is bound to this
shader attribute
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.