public class TextureUnitState extends NodeComponent
Appearance,
Texture,
TextureAttributes,
TexCoordGeneration| Modifier and Type | Field | Description |
|---|---|---|
static int |
ALLOW_STATE_READ |
Specifies that this TextureUnitState object allows reading its
texture, texture attribute, or texture coordinate generation
component information.
|
static int |
ALLOW_STATE_WRITE |
Specifies that this TextureUnitState object allows writing its
texture, texture attribute, or texture coordinate generation
component information.
|
| Constructor | Description |
|---|---|
TextureUnitState() |
Constructs a TextureUnitState component object using defaults for all
state variables.
|
TextureUnitState(Texture texture,
TextureAttributes textureAttributes,
TexCoordGeneration texCoordGeneration) |
Constructs a TextureUnitState component object using the specified
component objects.
|
| Modifier and Type | Method | Description |
|---|---|---|
NodeComponent |
cloneNodeComponent() |
Deprecated.
replaced with cloneNodeComponent(boolean forceDuplicate)
|
void |
duplicateNodeComponent(NodeComponent originalNodeComponent) |
Deprecated.
replaced with duplicateNodeComponent(
NodeComponent originalNodeComponent, boolean forceDuplicate)
|
TexCoordGeneration |
getTexCoordGeneration() |
Retrieves the current texCoordGeneration object.
|
Texture |
getTexture() |
Retrieves the current texture object.
|
TextureAttributes |
getTextureAttributes() |
Retrieves the current textureAttributes object.
|
void |
set(Texture texture,
TextureAttributes textureAttributes,
TexCoordGeneration texCoordGeneration) |
Sets the texture, texture attributes, and texture coordinate
generation components in this TextureUnitState object to the
specified component objects.
|
void |
setTexCoordGeneration(TexCoordGeneration texCoordGeneration) |
Sets the texCoordGeneration object to the specified object.
|
void |
setTexture(Texture texture) |
Sets the texture object to the specified object.
|
void |
setTextureAttributes(TextureAttributes textureAttributes) |
Sets the textureAttributes object to the specified object.
|
cloneNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferencespublic static final int ALLOW_STATE_READ
public static final int ALLOW_STATE_WRITE
public TextureUnitState()
public TextureUnitState(Texture texture, TextureAttributes textureAttributes, TexCoordGeneration texCoordGeneration)
texture - object that specifies the desired texture
map and texture parameterstextureAttributes - object that specifies the desired
texture attributestexCoordGeneration - object that specifies the texture coordinate
generation parameterspublic void set(Texture texture, TextureAttributes textureAttributes, TexCoordGeneration texCoordGeneration)
texture - object that specifies the desired texture
map and texture parameterstextureAttributes - object that specifies the desired
texture attributestexCoordGeneration - object that specifies the texture coordinate
generation parametersIllegalSharingException - if this TextureUnitState is live and
the specified texture refers to an ImageComponent2D that is being used
by a Canvas3D as an off-screen buffer.IllegalSharingException - if this TextureUnitState is
being used by an immediate mode context and
the specified texture refers to an ImageComponent2D that is being used
by a Canvas3D as an off-screen buffer.public void setTexture(Texture texture)
texture - object that specifies the desired texture
map and texture parametersCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphIllegalSharingException - if this TextureUnitState is live and
the specified texture refers to an ImageComponent2D that is being used
by a Canvas3D as an off-screen buffer.IllegalSharingException - if this TextureUnitState is
being used by an immediate mode context and
the specified texture refers to an ImageComponent2D that is being used
by a Canvas3D as an off-screen buffer.public Texture getTexture()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic void setTextureAttributes(TextureAttributes textureAttributes)
textureAttributes - object that specifies the desired
texture attributesCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic TextureAttributes getTextureAttributes()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic void setTexCoordGeneration(TexCoordGeneration texCoordGeneration)
texCoordGeneration - object that specifies the texture coordinate
generation parametersCapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic TexCoordGeneration getTexCoordGeneration()
CapabilityNotSetException - if appropriate capability is
not set and this object is part of live or compiled scene graphpublic NodeComponent cloneNodeComponent()
cloneNodeComponent in class NodeComponentpublic void duplicateNodeComponent(NodeComponent originalNodeComponent)
duplicateNodeComponent in class NodeComponentCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.