com.partnersoft.gui
Class GLTextureManager

java.lang.Object
  extended by com.partnersoft.gui.GLTextureManager

public class GLTextureManager
extends java.lang.Object


Field Summary
protected  java.util.HashMap<java.lang.Object,GLFont> fonts
           
protected  java.util.HashMap<java.lang.Integer,GLFont> fontsByID
           
protected  java.util.HashMap<java.lang.Object,GLTexture> textures
           
protected  java.util.HashMap<java.lang.Integer,GLTexture> texturesByID
           
 
Method Summary
protected  void addEZ2DGLCanvas(EZ2DGLCanvas canvas)
           
 int addFont(GLFont font, java.lang.Object key)
           
 int addTexture(GLTexture texture, java.lang.Object key)
           
 int addTexture(java.awt.Image image, java.lang.Object key)
           
 void clearFontsAndTextures()
           
 GLFont getFontByID(int id)
           
 int getFontID(java.lang.Object key)
           
 GLTexture getTextureByID(int id)
           
 int getTextureID(java.lang.Object key)
           
 void removeFont(java.lang.Object key)
           
 void removeTexture(java.lang.Object key)
           
static GLTextureManager singleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fonts

protected java.util.HashMap<java.lang.Object,GLFont> fonts

fontsByID

protected java.util.HashMap<java.lang.Integer,GLFont> fontsByID

textures

protected java.util.HashMap<java.lang.Object,GLTexture> textures

texturesByID

protected java.util.HashMap<java.lang.Integer,GLTexture> texturesByID
Method Detail

addEZ2DGLCanvas

protected void addEZ2DGLCanvas(EZ2DGLCanvas canvas)

singleton

public static GLTextureManager singleton()

addFont

public int addFont(GLFont font,
                   java.lang.Object key)

addTexture

public int addTexture(java.awt.Image image,
                      java.lang.Object key)

addTexture

public int addTexture(GLTexture texture,
                      java.lang.Object key)

clearFontsAndTextures

public void clearFontsAndTextures()

getFontByID

public GLFont getFontByID(int id)

getFontID

public int getFontID(java.lang.Object key)

getTextureByID

public GLTexture getTextureByID(int id)

getTextureID

public int getTextureID(java.lang.Object key)

removeFont

public void removeFont(java.lang.Object key)

removeTexture

public void removeTexture(java.lang.Object key)