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, textureMagnificationFilter, textureMinificationFilter, useMipMap| 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.
|
getTextureMagnificationFilter, getTextureMinificationFilter, hasMountedOnce, isUseMipMap, load, setTextureMagnificationFilter, setTextureMinificationFilter, setUseMipMapprotected 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)
load in class SharedTexturepublic 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 © 2018. All rights reserved.