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 TypeMethodDescriptionvoid
bind
(JoGLDrawingTools drawingTools, Texture texture) Texture binder.Texture creator.void
dispose
(Collection<Texture> textures) Dispose the given textures.void
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.
-
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:TextureManager
Texture creator.- Specified by:
createTexture
in interfaceTextureManager
- Returns:
- a new
Texture
-
dispose
Description copied from interface:TextureManager
Dispose the given textures.- Specified by:
dispose
in interfaceTextureManager
- Parameters:
textures
- textures to dispose.
-
dispose
- Specified by:
dispose
in interfaceTextureManager
-