class ShaderAppearanceRetained extends AppearanceRetained
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isMirror |
(package private) static int |
SHADER_ATTRIBUTE_SET |
(package private) static int |
SHADER_PROGRAM |
protected ShaderAttributeSetRetained |
shaderAttributeSet |
protected ShaderProgramRetained |
shaderProgram |
ALL_SOLE_USERS, COLOR, coloringAttributes, LINE, lineAttributes, liveStateLock, map, mapAppearance, material, MATERIAL, POINT, pointAttributes, POLYGON, polygonAttributes, RENDERING, renderingAttributes, sgApp, TEXCOORD_GEN, texCoordGeneration, texture, TEXTURE, TEXTURE_ATTR, TEXTURE_UNIT_STATE, textureAttributes, texUnitState, TRANSPARENCY, transparencyAttributeschangedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, usersDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
ShaderAppearanceRetained() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addAMirrorUser(Shape3DRetained shape) |
(package private) void |
clearLive(int refCount)
This clearLive routine first calls the superclass's method, then
it removes itself to the list of lights
|
(package private) void |
compile(CompileState compState)
This is the default compile() method, which just marks the sgo as
compiled.
|
(package private) void |
createMirrorObject() |
(package private) void |
doSetLive(boolean backgroundGroup,
int refCount)
This method calls the setLive method of all appearance bundle
objects.
|
boolean |
equals(java.lang.Object obj) |
(package private) boolean |
equals(ShaderAppearanceRetained sApp) |
(package private) ShaderAttributeSet |
getShaderAttributeSet()
Retrieves the current ShaderAttributeSet object.
|
(package private) ShaderProgram |
getShaderProgram()
Retrieves the current shader program object.
|
(package private) void |
handleFrequencyChange(int bit) |
(package private) void |
initMirrorObject()
This routine updates the mirror appearance for this appearance.
|
(package private) boolean |
isOpaque(int geoType) |
(package private) boolean |
isStatic()
true if component can't be read or written after compile or setlive()
|
(package private) void |
removeAMirrorUser(Shape3DRetained shape) |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr) |
(package private) void |
setShaderAttributeSet(ShaderAttributeSet sas)
Sets the ShaderAttributeSet object to the specified object.
|
(package private) void |
setShaderProgram(ShaderProgram sp)
Set the shader program object to the specified object.
|
(package private) void |
updateMirrorObject(int component,
java.lang.Object value)
Update the "component" field of the mirror object with the
given "value"
|
equals, getColoringAttributes, getLineAttributes, getMaterial, getPointAttributes, getPolygonAttributes, getRenderingAttributes, getTexCoordGeneration, getTexture, getTextureAttributes, getTextureUnitCount, getTextureUnitState, getTextureUnitState, getTransparencyAttributes, hashCode, sendMessage, sendRenderingAttributesChangedMessage, setColoringAttributes, setLineAttributes, setLive, setMaterial, setPointAttributes, setPolygonAttributes, setRenderingAttributes, setTexCoordGeneration, setTexture, setTextureAttributes, setTextureUnitState, setTextureUnitState, setTransparencyAttributesaddUser, clone, copyMirrorUsers, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtxclearLive, clearLive, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traversegetIdxUsed, incIdxUsedstatic final int SHADER_PROGRAM
static final int SHADER_ATTRIBUTE_SET
protected ShaderProgramRetained shaderProgram
protected ShaderAttributeSetRetained shaderAttributeSet
protected boolean isMirror
void setShaderProgram(ShaderProgram sp)
shaderProgram - object that specifies the desired shader program
and shader program attributes.ShaderProgram getShaderProgram()
void setShaderAttributeSet(ShaderAttributeSet sas)
shaderAttributeSet - object that specifies the desired shader attributesShaderAttributeSet getShaderAttributeSet()
public boolean equals(java.lang.Object obj)
equals in class AppearanceRetainedboolean equals(ShaderAppearanceRetained sApp)
void createMirrorObject()
createMirrorObject in class AppearanceRetainedvoid initMirrorObject()
initMirrorObject in class AppearanceRetainedvoid updateMirrorObject(int component,
java.lang.Object value)
updateMirrorObject in class AppearanceRetainedvoid doSetLive(boolean backgroundGroup,
int refCount)
doSetLive in class AppearanceRetainedvoid clearLive(int refCount)
clearLive in class AppearanceRetainedvoid addAMirrorUser(Shape3DRetained shape)
addAMirrorUser in class AppearanceRetainedvoid removeAMirrorUser(Shape3DRetained shape)
removeAMirrorUser in class AppearanceRetainedfinal void sendMessage(int attrMask,
java.lang.Object attr)
boolean isStatic()
SceneGraphObjectRetainedisStatic in class AppearanceRetainedvoid compile(CompileState compState)
SceneGraphObjectRetainedcompile in class AppearanceRetainedboolean isOpaque(int geoType)
isOpaque in class AppearanceRetainedvoid handleFrequencyChange(int bit)
handleFrequencyChange in class AppearanceRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.