org.scilab.forge.scirenderer.implementation.jogl.texture
Class JoGLTextureManager

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.jogl.texture.JoGLTextureManager
All Implemented Interfaces:
TextureManager

public class JoGLTextureManager
extends java.lang.Object
implements TextureManager

Author:
Pierre Lando

Constructor Summary
JoGLTextureManager(JoGLCanvas canvas)
           
 
Method Summary
 void bind(JoGLDrawingTools drawingTools, Texture texture)
          Texture binder.
 Texture createTexture()
          Texture creator.
 void draw(JoGLDrawingTools drawingTools, Texture texture)
          Draw the given texture.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

createTexture

public Texture createTexture()
Description copied from interface: TextureManager
Texture creator.

Specified by:
createTexture in interface TextureManager
Returns:
a new Texture