public class BufferedImageTexture extends SharedTexture
| Modifier and Type | Field and Description |
|---|---|
protected com.jogamp.opengl.util.texture.TextureCoords |
coords |
protected float |
halfHeight |
protected float |
halfWidth |
protected BufferedImage |
image |
protected com.jogamp.opengl.util.texture.Texture |
texture |
file| Constructor and Description |
|---|
BufferedImageTexture(BufferedImage image) |
| Modifier and Type | Method and Description |
|---|---|
com.jogamp.opengl.util.texture.TextureCoords |
getCoords() |
String |
getFile()
returns null
|
float |
getHalfHeight() |
float |
getHalfWidth() |
com.jogamp.opengl.util.texture.Texture |
getTexture(com.jogamp.opengl.GL gl) |
protected void |
load(com.jogamp.opengl.GL gl,
BufferedImage image) |
void |
mount(com.jogamp.opengl.GL gl)
A GL2 context MUST be current.
|
hasMountedOnce, loadprotected com.jogamp.opengl.util.texture.Texture texture
protected BufferedImage image
protected com.jogamp.opengl.util.texture.TextureCoords coords
protected float halfWidth
protected float halfHeight
public BufferedImageTexture(BufferedImage image)
public com.jogamp.opengl.util.texture.Texture getTexture(com.jogamp.opengl.GL gl)
getTexture in class SharedTexturepublic void mount(com.jogamp.opengl.GL gl)
mount in interface IGLBindedResourcemount in class SharedTextureprotected void load(com.jogamp.opengl.GL gl,
BufferedImage image)
throws com.jogamp.opengl.GLException,
IOException
com.jogamp.opengl.GLExceptionIOExceptionpublic String getFile()
getFile in class SharedTexturepublic com.jogamp.opengl.util.texture.TextureCoords getCoords()
getCoords in class SharedTexturepublic float getHalfWidth()
getHalfWidth in class SharedTexturepublic float getHalfHeight()
getHalfHeight in class SharedTextureCopyright © 2016. All rights reserved.