public class JoGLTextureManager extends java.lang.Object implements TextureManager
Modifier and Type | Class and Description |
---|---|
class |
JoGLTextureManager.JoGLTexture
Inner class for
Texture implementation. |
Constructor and Description |
---|
JoGLTextureManager(JoGLCanvas canvas) |
Modifier and Type | Method and Description |
---|---|
void |
bind(JoGLDrawingTools drawingTools,
Texture texture)
Texture binder.
|
Texture |
createTexture()
Texture creator.
|
void |
dispose(java.util.Collection<Texture> textures)
Dispose the given textures.
|
void |
dispose(Texture texture) |
void |
draw(JoGLDrawingTools drawingTools,
Texture texture)
Draw the given texture.
|
void |
draw(JoGLDrawingTools drawingTools,
Texture texture,
AnchorPosition anchor,
ElementsBuffer positions,
double rotationAngle) |
void |
draw(JoGLDrawingTools drawingTools,
Texture texture,
AnchorPosition anchor,
Vector3d position,
double rotationAngle) |
void |
glReload()
Called when gl context is gone.
|
public JoGLTextureManager(JoGLCanvas canvas)
public void bind(JoGLDrawingTools drawingTools, Texture texture) throws SciRendererException
drawingTools
- drawing tools.texture
- given texture.SciRendererException
- if the texture can't be bind.public void draw(JoGLDrawingTools drawingTools, Texture texture) throws SciRendererException
drawingTools
- used drawing tools.texture
- the texture too drawn.SciRendererException
- if the texture is invalid.public void draw(JoGLDrawingTools drawingTools, Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle) throws SciRendererException
SciRendererException
public void draw(JoGLDrawingTools drawingTools, Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle) throws SciRendererException
SciRendererException
public void glReload()
public Texture createTexture()
TextureManager
createTexture
in interface TextureManager
Texture
public void dispose(java.util.Collection<Texture> textures)
TextureManager
dispose
in interface TextureManager
textures
- textures to dispose.public void dispose(Texture texture)
dispose
in interface TextureManager