com.partnersoft.gui
Class GLTextureManager
java.lang.Object
com.partnersoft.gui.GLTextureManager
public class GLTextureManager
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)