|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.Texture
org.j3d.aviatrix3d.TextureCubicEnvironmentMap
A specialist object that renders a cubic environment map from pre-built images.
All textures must be square in size. If they are not square, then an error is generated.
This implementation does not handle dynamic cubic environment mapping, nor mipmaps.
Field Summary | |
protected int |
boundaryModeT
The boundary mode S value |
protected int |
height
The height of the main texture. |
static int |
NEGATIVE_X
The texture belongs to the negative X axis |
static int |
NEGATIVE_Y
The texture belongs to the negative Y axis |
static int |
NEGATIVE_Z
The texture belongs to the negative Z axis |
static int |
POSITIVE_X
The texture belongs to the positive X axis |
static int |
POSITIVE_Y
The texture belongs to the positive Y axis |
static int |
POSITIVE_Z
The texture belongs to the positive Z axis |
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
liveCount |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
TextureCubicEnvironmentMap()
Constructs a texture with default values. |
|
TextureCubicEnvironmentMap(TextureComponent2D[] srcImages)
Constructs a texture with the given list of images. |
Method Summary | |
int |
getBoundaryModeS()
Get the current boundary handling for the S parameter. |
int |
getHeight()
Get the height of the texture in pixels. |
void |
renderState(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
Issue ogl commands needed for this component |
void |
restoreState(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
Restore all openGL state to the given drawable |
void |
setBoundaryModeS(int mode)
Set the boundary handling for the S parameter. |
Methods inherited from class org.j3d.aviatrix3d.Texture |
cleanup, getAnisotropicFilterDegree, getAnisotropicFilterMode, getFormat, getMagFilter, getMinFilter, getTextureType, getWidth, setAnisotropicFilterDegree, setAnisotropicFilterMode, setImages, setMagFilter, setMinFilter |
Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
addParent, getParents, hasChanged, numParents, removeParent |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, checkForCyclicParent, dataChanged, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int POSITIVE_X
public static final int NEGATIVE_X
public static final int POSITIVE_Y
public static final int NEGATIVE_Y
public static final int POSITIVE_Z
public static final int NEGATIVE_Z
protected int height
protected int boundaryModeT
Constructor Detail |
public TextureCubicEnvironmentMap()
public TextureCubicEnvironmentMap(TextureComponent2D[] srcImages)
Method Detail |
public void renderState(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
renderState
in class NodeComponent
gl
- The gl context to draw withglu
- The utility context to draw withpublic void restoreState(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
restoreState
in class NodeComponent
gl
- The gl context to draw withglu
- The utility context to draw withpublic void setBoundaryModeS(int mode) throws InvalidWriteTimingException
setBoundaryModeS
in class Texture
mode
- The new mode.
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic int getBoundaryModeS()
getBoundaryModeS
in class Texture
public int getHeight()
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |