|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz3d.TextureDrawable
public class TextureDrawable
Draws a texture on to a unit sized rectangle.
Field Summary | |
---|---|
private float[] |
coords
|
private java.awt.image.BufferedImage |
img
|
private long |
sortIndex
|
private com.sun.opengl.util.texture.Texture |
texture
|
Constructor Summary | |
---|---|
TextureDrawable(java.awt.image.BufferedImage img,
long sortIndex)
|
Method Summary | |
---|---|
private void |
createTexture()
|
void |
dispose()
Dispose of any resources this StackDrawable may be holding. |
void |
draw(javax.media.opengl.GL gl)
Draws the drawable using the current OpenGL interface. |
long |
getSortIndex()
Gets an index that can be used to sort this drawable. |
void |
init()
Initializes this StackDrawable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private com.sun.opengl.util.texture.Texture texture
private java.awt.image.BufferedImage img
private long sortIndex
private float[] coords
Constructor Detail |
---|
public TextureDrawable(java.awt.image.BufferedImage img, long sortIndex)
Method Detail |
---|
public void init()
StackDrawable
init
in interface StackDrawable
public void dispose()
StackDrawable
dispose
in interface StackDrawable
private void createTexture()
public long getSortIndex()
StackDrawable
getSortIndex
in interface StackDrawable
public void draw(javax.media.opengl.GL gl)
StackDrawable
draw
in interface StackDrawable
gl
- the interface to OpenGL.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |