Class G2DTextureManager
- java.lang.Object
-
- org.scilab.forge.scirenderer.implementation.g2d.texture.G2DTextureManager
-
- All Implemented Interfaces:
TextureManager
public class G2DTextureManager extends java.lang.Object implements TextureManager
- Author:
- Calixte DENIZET
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classG2DTextureManager.G2DTextureInner class forTextureimplementation.
-
Constructor Summary
Constructors Constructor Description G2DTextureManager(G2DCanvas canvas)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclear()TexturecreateTexture()Texture creator.voiddispose(java.util.Collection<Texture> textures)Dispose the given textures.voiddispose(Texture texture)voiddraw(G2DDrawingTools drawingTools, Texture texture)Draw the given texture.
-
-
-
Constructor Detail
-
G2DTextureManager
public G2DTextureManager(G2DCanvas canvas)
-
-
Method Detail
-
clear
public static void clear()
-
draw
public void draw(G2DDrawingTools 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: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
-
-