|
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.Texture2D
Describes the 2D texture properties of an object.
Field Summary | |
protected int |
boundaryModeT
The boundary mode S value |
protected int |
height
The height of the main texture. |
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
liveCount |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
Texture2D()
Constructs a texture with default values. |
|
Texture2D(int format,
TextureComponent2D singleImage)
Constructs a texture using just a single image, thus setting it initially as MODE_BASE_LEVEL. |
|
Texture2D(int format,
TextureComponent2D[] srcImages,
int num)
Constructs a 2D texture with the specified images. |
Method Summary | |
int |
compareTo(Texture tex)
Compares this object with the specified object for order. |
boolean |
equals(Texture tex)
Compares this object with the specified object to check for equivalence. |
int |
getBoundaryModeT()
Get the current boundary handling for the T 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 |
setBoundaryModeT(int mode)
Set the boundary handling for the T parameter. |
Methods inherited from class org.j3d.aviatrix3d.Texture |
cleanup, compareTo, equals, getAnisotropicFilterDegree, getAnisotropicFilterMode, getBoundaryModeS, getFormat, getMagFilter, getMinFilter, getTextureType, getWidth, setAnisotropicFilterDegree, setAnisotropicFilterMode, setBoundaryModeS, setImages, setLive, 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, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int boundaryModeT
protected int height
Constructor Detail |
public Texture2D()
public Texture2D(int format, TextureComponent2D singleImage)
public Texture2D(int format, TextureComponent2D[] srcImages, int num)
srcImages
- The image defining this texture.num
- The number of valid images to take from the arrayMethod 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 setBoundaryModeT(int mode) throws InvalidWriteTimingException
mode
- The new mode.
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodpublic int getBoundaryModeT()
public int getHeight()
public int compareTo(Texture tex)
compareTo
in class Texture
tex
- The texture instance to be compared
public boolean equals(Texture tex)
equals
in class Texture
tex
- The texture instance to be compared
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |