org.jzy3d.plot3d.rendering.textures
Class BufferedImageTexture
java.lang.Object
org.jzy3d.plot3d.rendering.textures.SharedTexture
org.jzy3d.plot3d.rendering.textures.BufferedImageTexture
- All Implemented Interfaces:
- IGLBindedResource
public class BufferedImageTexture
- extends SharedTexture
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
texture
protected com.jogamp.opengl.util.texture.Texture texture
image
protected BufferedImage image
coords
protected com.jogamp.opengl.util.texture.TextureCoords coords
halfWidth
protected float halfWidth
halfHeight
protected float halfHeight
BufferedImageTexture
public BufferedImageTexture(BufferedImage image)
getTexture
public com.jogamp.opengl.util.texture.Texture getTexture(javax.media.opengl.GL2 gl)
- Overrides:
getTexture in class SharedTexture
mount
public void mount(javax.media.opengl.GL2 gl)
- A GL2 context MUST be current.
- Specified by:
mount in interface IGLBindedResource- Overrides:
mount in class SharedTexture
load
protected void load(javax.media.opengl.GL2 gl,
BufferedImage image)
throws javax.media.opengl.GLException,
IOException
- Throws:
javax.media.opengl.GLException
IOException
getFile
public String getFile()
- returns null
- Overrides:
getFile in class SharedTexture
getCoords
public com.jogamp.opengl.util.texture.TextureCoords getCoords()
- Overrides:
getCoords in class SharedTexture
getHalfWidth
public float getHalfWidth()
- Overrides:
getHalfWidth in class SharedTexture
getHalfHeight
public float getHalfHeight()
- Overrides:
getHalfHeight in class SharedTexture