Class JoGLTextureManager
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.jogl.texture.JoGLTextureManager
-
- All Implemented Interfaces:
TextureManager
public class JoGLTextureManager extends java.lang.Object implements TextureManager
- Author:
- Pierre Lando
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJoGLTextureManager.JoGLTextureInner class forTextureimplementation.
-
Constructor Summary
Constructors Constructor Description JoGLTextureManager(JoGLCanvas canvas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(JoGLDrawingTools drawingTools, Texture texture)Texture binder.TexturecreateTexture()Texture creator.voiddispose(java.util.Collection<Texture> textures)Dispose the given textures.voiddispose(Texture texture)voiddraw(JoGLDrawingTools drawingTools, Texture texture)Draw the given texture.voiddraw(JoGLDrawingTools drawingTools, Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle)voiddraw(JoGLDrawingTools drawingTools, Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle)voidglReload()Called when gl context is gone.
-
-
-
Constructor Detail
-
JoGLTextureManager
public JoGLTextureManager(JoGLCanvas canvas)
-
-
Method Detail
-
bind
public void bind(JoGLDrawingTools drawingTools, Texture texture) throws SciRendererException
Texture binder. Bind the given texture to the given OpenGl context.- Parameters:
drawingTools- drawing tools.texture- given texture.- Throws:
SciRendererException- if the texture can't be bind.
-
draw
public void draw(JoGLDrawingTools drawingTools, Texture texture) throws SciRendererException
Draw the given texture.- Parameters:
drawingTools- used drawing tools.texture- the texture too drawn.- Throws:
SciRendererException- if the texture is invalid.
-
draw
public void draw(JoGLDrawingTools drawingTools, Texture texture, AnchorPosition anchor, ElementsBuffer positions, double rotationAngle) throws SciRendererException
- Throws:
SciRendererException
-
draw
public void draw(JoGLDrawingTools drawingTools, Texture texture, AnchorPosition anchor, Vector3d position, double rotationAngle) throws SciRendererException
- Throws:
SciRendererException
-
glReload
public void glReload()
Called when gl context is gone.
-
createTexture
public Texture createTexture()
Description copied from interface:TextureManagerTexture creator.- Specified by:
createTexturein interfaceTextureManager- Returns:
- a new
Texture
-
dispose
public void dispose(java.util.Collection<Texture> textures)
Description copied from interface:TextureManagerDispose the given textures.- Specified by:
disposein interfaceTextureManager- Parameters:
textures- textures to dispose.
-
dispose
public void dispose(Texture texture)
- Specified by:
disposein interfaceTextureManager
-
-