javax.media.j3d
Class TextureCubeMapRetained
java.lang.Object
javax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.TextureRetained
javax.media.j3d.TextureCubeMapRetained
- All Implemented Interfaces:
- java.lang.Cloneable
class TextureCubeMapRetained
- extends TextureRetained
TextureCubeMap is a subclass of Texture class.
Field Summary |
(package private) static int |
NUMFACES
|
Fields inherited from class javax.media.j3d.TextureRetained |
anisotropicFilterDegree, anisotropicFilterMode, BASE_LEVEL_CHANGED, baseLevel, boundaryColor, boundaryModeS, boundaryModeT, boundaryWidth, COLOR_CHANGED, enable, ENABLE_CHANGED, filter4FuncPts, format, height, IMAGE_CHANGED, images, IMAGES_CHANGED, imageUpdateInfo, imageUpdatePruneMask, isAlphaNeedUpdate, isDirty, LOD_OFFSET_CHANGED, lodOffset, MAG_FILTER, magFilter, MAX_LEVEL_CHANGED, MAX_LOD_CHANGED, maximumLevel, maximumLod, maxLevels, MIN_FILTER, MIN_LOD_CHANGED, minFilter, minimumLod, mipmapMode, numFaces, numSharpenTextureFuncPts, objectId, resourceCreationMask, resourceInReloadList, resourceLock, resourceLodUpdatedMask, resourceUpdatedMask, sharpenTextureFuncPts, STATE_CHANGED, UPDATE_IMAGE, userSpecifiedEnable, width |
Method Summary |
(package private) void |
bindTexture(Context ctx,
int objectId,
boolean enable)
|
(package private) ImageComponent |
getImage(int level,
int face)
Gets a specified mipmap level of a particular face of the cube map. |
(package private) ImageComponent[] |
getImages(int face)
Gets an array of image for a particular face of the cube map. |
(package private) void |
initialize(int format,
int width,
int widPower,
int height,
int heiPower,
int mipmapMode,
int boundaryWidth)
|
(package private) void |
initImage(int level,
int face,
ImageComponent image)
Sets a specified mipmap level for a particular face of the cubemap. |
(package private) void |
initImages(int face,
ImageComponent[] images)
|
(package private) void |
setImage(int level,
int face,
ImageComponent image)
|
(package private) void |
setImages(int face,
ImageComponent[] images)
|
(package private) void |
updateTextureAnisotropicFilter(Context ctx,
float degree)
|
(package private) void |
updateTextureBoundary(Context ctx,
int boundaryModeS,
int boundaryModeT,
float boundaryRed,
float boundaryGreen,
float boundaryBlue,
float boundaryAlpha)
|
(package private) void |
updateTextureDimensions(Canvas3D cv)
Load level 0 explicitly with null data pointer to allow
mipmapping when level 0 is not the base level |
(package private) void |
updateTextureFilter4Func(Context ctx,
int numFilter4FuncPts,
float[] filter4FuncPts)
|
(package private) void |
updateTextureFilterModes(Context ctx,
int minFilter,
int magFilter)
|
(package private) void |
updateTextureImage(Canvas3D cv,
int face,
int numLevels,
int level,
int textureFormat,
int imageFormat,
int width,
int height,
int boundaryWidth,
int imageDataType,
java.lang.Object imageData)
|
(package private) void |
updateTextureLodOffset(Context ctx,
float lodOffsetX,
float lodOffsetY,
float lodOffsetZ)
|
(package private) void |
updateTextureLodRange(Context ctx,
int baseLevel,
int maximumLevel,
float minimumLod,
float maximumLod)
|
(package private) void |
updateTextureSharpenFunc(Context ctx,
int numSharpenTextureFuncPts,
float[] sharpenTextureFuncPts)
|
(package private) void |
updateTextureSubImage(Canvas3D cv,
int face,
int level,
int xoffset,
int yoffset,
int textureFormat,
int imageFormat,
int imgXOffset,
int imgYOffset,
int tilew,
int width,
int height,
int imageDataType,
java.lang.Object imageData)
|
Methods inherited from class javax.media.j3d.TextureRetained |
addImageUpdateInfo, bindTexture, checkImageSize, checkSizes, clearLive, createMirrorObject, decTextureBinRefCount, freeTextureId, getAnisotropicFilterDegree, getAnisotropicFilterMode, getBaseLevel, getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getBoundaryWidth, getEnable, getFilter4Func, getFilter4Func, getFilter4FuncPointsCount, getFormat, getHeight, getImage, getImages, getLodOffset, getMagFilter, getMaximumLevel, getMaximumLOD, getMinFilter, getMinimumLOD, getMipMapMode, getSharpenTextureFunc, getSharpenTextureFunc, getSharpenTextureFunc, getSharpenTextureFuncPointsCount, getTextureBinRefCount, getTextureId, getWidth, handleFrequencyChange, incTextureBinRefCount, initAnisotropicFilterDegree, initAnisotropicFilterMode, initBaseLevel, initBoundaryColor, initBoundaryColor, initBoundaryModeS, initBoundaryModeT, initEnable, initFilter4Func, initImage, initImages, initLodOffset, initMagFilter, initMaximumLevel, initMaximumLOD, initMinFilter, initMinimumLOD, initMipMapMode, initMirrorObject, initSharpenTextureFunc, initSharpenTextureFunc, initSharpenTextureFunc, isUseAsRaster, notifyImageComponentImageChanged, numMipMapLevels, pruneImageUpdateInfo, reloadTexture, reloadTextureImage, reloadTextureSharedContext, reloadTextureSubImage, sendMessage, setBaseLevel, setEnable, setImage, setImages, setLive, setLodOffset, setMaximumLevel, setMaximumLOD, setMinimumLOD, setUseAsRaster, updateMirrorObject, updateNative, updateResourceCreationMask, updateTexture, updateTextureBoundary, updateTextureFields, updateTextureLOD, useAutoMipMapGeneration, validate |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
addAMirrorUser, addUser, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, 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 |
NUMFACES
static final int NUMFACES
- See Also:
- Constant Field Values
TextureCubeMapRetained
TextureCubeMapRetained()
initialize
void initialize(int format,
int width,
int widPower,
int height,
int heiPower,
int mipmapMode,
int boundaryWidth)
- Overrides:
initialize
in class TextureRetained
initImage
void initImage(int level,
int face,
ImageComponent image)
- Sets a specified mipmap level for a particular face of the cubemap.
setImage
final void setImage(int level,
int face,
ImageComponent image)
initImages
void initImages(int face,
ImageComponent[] images)
setImages
final void setImages(int face,
ImageComponent[] images)
getImage
final ImageComponent getImage(int level,
int face)
- Gets a specified mipmap level of a particular face of the cube map.
- Parameters:
level
- mipmap level to getface
- face of the cube map
- Returns:
- the pixel array object containing the texture image
getImages
final ImageComponent[] getImages(int face)
- Gets an array of image for a particular face of the cube map.
- Parameters:
face
- face of the cube map
- Returns:
- the pixel array object containing the texture image
bindTexture
void bindTexture(Context ctx,
int objectId,
boolean enable)
- Overrides:
bindTexture
in class TextureRetained
updateTextureBoundary
void updateTextureBoundary(Context ctx,
int boundaryModeS,
int boundaryModeT,
float boundaryRed,
float boundaryGreen,
float boundaryBlue,
float boundaryAlpha)
- Overrides:
updateTextureBoundary
in class TextureRetained
updateTextureFilterModes
void updateTextureFilterModes(Context ctx,
int minFilter,
int magFilter)
- Overrides:
updateTextureFilterModes
in class TextureRetained
updateTextureSharpenFunc
void updateTextureSharpenFunc(Context ctx,
int numSharpenTextureFuncPts,
float[] sharpenTextureFuncPts)
- Overrides:
updateTextureSharpenFunc
in class TextureRetained
updateTextureFilter4Func
void updateTextureFilter4Func(Context ctx,
int numFilter4FuncPts,
float[] filter4FuncPts)
- Overrides:
updateTextureFilter4Func
in class TextureRetained
updateTextureAnisotropicFilter
void updateTextureAnisotropicFilter(Context ctx,
float degree)
- Overrides:
updateTextureAnisotropicFilter
in class TextureRetained
updateTextureLodRange
void updateTextureLodRange(Context ctx,
int baseLevel,
int maximumLevel,
float minimumLod,
float maximumLod)
- Overrides:
updateTextureLodRange
in class TextureRetained
updateTextureLodOffset
void updateTextureLodOffset(Context ctx,
float lodOffsetX,
float lodOffsetY,
float lodOffsetZ)
- Overrides:
updateTextureLodOffset
in class TextureRetained
updateTextureDimensions
void updateTextureDimensions(Canvas3D cv)
- Load level 0 explicitly with null data pointer to allow
mipmapping when level 0 is not the base level
- Overrides:
updateTextureDimensions
in class TextureRetained
updateTextureImage
void updateTextureImage(Canvas3D cv,
int face,
int numLevels,
int level,
int textureFormat,
int imageFormat,
int width,
int height,
int boundaryWidth,
int imageDataType,
java.lang.Object imageData)
- Overrides:
updateTextureImage
in class TextureRetained
updateTextureSubImage
void updateTextureSubImage(Canvas3D cv,
int face,
int level,
int xoffset,
int yoffset,
int textureFormat,
int imageFormat,
int imgXOffset,
int imgYOffset,
int tilew,
int width,
int height,
int imageDataType,
java.lang.Object imageData)
- Overrides:
updateTextureSubImage
in class TextureRetained
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.