Class JoGLTextureManager
java.lang.Object
org.scilab.forge.scirenderer.implementation.jogl.texture.JoGLTextureManager
- All Implemented Interfaces:
TextureManager
- Author:
- Pierre Lando
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(JoGLDrawingTools drawingTools, Texture texture) Texture binder.Texture creator.voiddispose(Collection<Texture> textures) Dispose the given textures.voidvoiddraw(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 Details
-
JoGLTextureManager
-
-
Method Details
-
bind
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
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
Description copied from interface:TextureManagerTexture creator.- Specified by:
createTexturein interfaceTextureManager- Returns:
- a new
Texture
-
dispose
Description copied from interface:TextureManagerDispose the given textures.- Specified by:
disposein interfaceTextureManager- Parameters:
textures- textures to dispose.
-
dispose
- Specified by:
disposein interfaceTextureManager
-