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