|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.NodeComponent | +--javax.media.j3d.Texture | +--javax.media.j3d.Texture2D
Texture2D is a subclass of Texture class. It extends Texture class by adding a constructor and a mutator method for setting a 2D texture image.
Fields inherited from class javax.media.j3d.Texture |
ALLOW_BOUNDARY_COLOR_READ,
ALLOW_BOUNDARY_MODE_READ,
ALLOW_ENABLE_READ,
ALLOW_ENABLE_WRITE,
ALLOW_FILTER_READ,
ALLOW_IMAGE_READ,
ALLOW_MIPMAP_MODE_READ,
ALPHA,
BASE_LEVEL,
BASE_LEVEL_LINEAR,
BASE_LEVEL_POINT,
CLAMP,
FASTEST,
INTENSITY,
LUMINANCE,
LUMINANCE_ALPHA,
MULTI_LEVEL_LINEAR,
MULTI_LEVEL_MIPMAP,
MULTI_LEVEL_POINT,
NICEST,
RGB,
RGBA,
WRAP |
Constructor Summary | |
Texture2D()
Constructs a texture object using default values. |
|
Texture2D(int mipmapMode,
int format,
int width,
int height)
Constructs an empty Texture2D object with specified mipmapMode format, width and height. |
Method Summary | |
NodeComponent |
cloneNodeComponent()
Creates a new Texture2D object. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies the information found in originalNodeComponent to
the current node. |
Methods inherited from class javax.media.j3d.Texture |
getBoundaryColor,
getBoundaryModeS,
getBoundaryModeT,
getEnable,
getImage,
getMagFilter,
getMinFilter,
getMipMapMode,
setBoundaryColor,
setBoundaryColor,
setBoundaryModeS,
setBoundaryModeT,
setEnable,
setImage,
setMagFilter,
setMinFilter,
setMipMapMode |
Methods inherited from class javax.media.j3d.NodeComponent |
getDuplicateOnCloneTree,
setDuplicateOnCloneTree |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability,
duplicateSceneGraphObject,
getCapability,
getUserData,
isCompiled,
isLive,
setCapability,
setUserData |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Texture2D()
public Texture2D(int mipmapMode, int format, int width, int height)
mipmapMode
- type of mipmap for this Texture: One of
BASE_LEVEL, MULTI_LEVEL_MIPMAP.format
- data format of Textures saved in this object.
One of INTENSITY, LUMINANCE, ALPHA, LUMINANCE_ALPHA, RGB, RGBA.width
- width of image at level 0. Must be power of 2.height
- height of image at level 0. Must be power of 2.Method Detail |
public NodeComponent cloneNodeComponent()
duplicateNode
method.Node.duplicateNode(javax.media.j3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)
originalNodeComponent
to
the current node. This routine is called as part of the
cloneTree
operation.originalNodeComponent
- the node to duplicate.Node.cloneTree()
,
Node.duplicateNode(javax.media.j3d.Node, boolean)
,
NodeComponent.setDuplicateOnCloneTree(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |