public class G2DTextureManager extends java.lang.Object implements TextureManager
Modifier and Type | Class and Description |
---|---|
class |
G2DTextureManager.G2DTexture
Inner class for
Texture implementation. |
Constructor and Description |
---|
G2DTextureManager(G2DCanvas canvas) |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
Texture |
createTexture()
Texture creator.
|
void |
dispose(java.util.Collection<Texture> textures)
Dispose the given textures.
|
void |
dispose(Texture texture) |
void |
draw(G2DDrawingTools drawingTools,
Texture texture)
Draw the given texture.
|
public G2DTextureManager(G2DCanvas canvas)
public static void clear()
public void draw(G2DDrawingTools drawingTools, Texture texture) throws SciRendererException
drawingTools
- used drawing tools.texture
- the texture too drawn.SciRendererException
- if the texture is invalid.public Texture createTexture()
TextureManager
createTexture
in interface TextureManager
Texture
public void dispose(java.util.Collection<Texture> textures)
TextureManager
dispose
in interface TextureManager
textures
- textures to dispose.public void dispose(Texture texture)
dispose
in interface TextureManager