org.jzy3d.plot3d.rendering.textures
Class SharedTexture
java.lang.Object
org.jzy3d.plot3d.rendering.textures.SharedTexture
- All Implemented Interfaces:
- IGLBindedResource
- Direct Known Subclasses:
- BufferedImageTexture
public class SharedTexture
- extends Object
- implements IGLBindedResource
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
file
protected String file
coords
protected com.jogamp.opengl.util.texture.TextureCoords coords
halfWidth
protected float halfWidth
halfHeight
protected float halfHeight
SharedTexture
protected SharedTexture()
SharedTexture
public SharedTexture(String file)
getTexture
public com.jogamp.opengl.util.texture.Texture getTexture(javax.media.opengl.GL gl)
mount
public void mount(javax.media.opengl.GL gl)
- A GL2 context MUST be current.
- Specified by:
mount
in interface IGLBindedResource
hasMountedOnce
public boolean hasMountedOnce()
- Description copied from interface:
IGLBindedResource
- Return true if mount(...) has been called at least one time
- Specified by:
hasMountedOnce
in interface IGLBindedResource
load
protected void load(javax.media.opengl.GL gl,
String fileName)
throws javax.media.opengl.GLException,
IOException
- Throws:
javax.media.opengl.GLException
IOException
getFile
public String getFile()
getCoords
public com.jogamp.opengl.util.texture.TextureCoords getCoords()
getHalfWidth
public float getHalfWidth()
getHalfHeight
public float getHalfHeight()
Copyright © 2013. All rights reserved.