public class ITextureGraphicGL2 extends java.lang.Object implements ITextureGraphicGL
| Modifier and Type | Field and Description |
|---|---|
javax.media.opengl.GL |
gl |
com.jogamp.opengl.util.texture.Texture |
texture |
int |
textureID |
| Constructor and Description |
|---|
ITextureGraphicGL2(java.awt.image.BufferedImage image,
javax.media.opengl.GL gl)
constructor with AWT buffered image
|
ITextureGraphicGL2(java.lang.String filename)
constructor with image file name
|
ITextureGraphicGL2(java.lang.String filename,
javax.media.opengl.GL gl)
constructor with image file name
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
destroy(javax.media.opengl.GL gl) |
static com.jogamp.opengl.util.texture.Texture |
getTexture(java.awt.image.BufferedImage image,
javax.media.opengl.GL gl) |
static com.jogamp.opengl.util.texture.Texture |
getTexture(java.lang.String imageFilename) |
int |
height() |
int |
id() |
void |
init(java.awt.image.BufferedImage image,
javax.media.opengl.GL gl) |
void |
init(java.lang.String filename,
javax.media.opengl.GL gl) |
int |
width() |
public com.jogamp.opengl.util.texture.Texture texture
public int textureID
public javax.media.opengl.GL gl
public ITextureGraphicGL2(java.lang.String filename)
public ITextureGraphicGL2(java.lang.String filename,
javax.media.opengl.GL gl)
public ITextureGraphicGL2(java.awt.image.BufferedImage image,
javax.media.opengl.GL gl)
public void init(java.lang.String filename,
javax.media.opengl.GL gl)
init in interface ITextureGraphicGLpublic void init(java.awt.image.BufferedImage image,
javax.media.opengl.GL gl)
init in interface ITextureGraphicGLpublic int id()
id in interface ITextureGraphicGLpublic static com.jogamp.opengl.util.texture.Texture getTexture(java.awt.image.BufferedImage image,
javax.media.opengl.GL gl)
public static com.jogamp.opengl.util.texture.Texture getTexture(java.lang.String imageFilename)
public int width()
width in interface ITextureGraphicGLpublic int height()
height in interface ITextureGraphicGLpublic void destroy(javax.media.opengl.GL gl)
destroy in interface ITextureGraphicGLpublic void destroy()
destroy in interface ITextureGraphicGL