com.partnersoft.gui
Class EZ2DGLCanvas
java.lang.Object
com.partnersoft.gui.EZ2DGLCanvas
public class EZ2DGLCanvas
- extends java.lang.Object
An abstraction up from GLCanvas. Knows about textures.
It provides EZ2DGL objects to interested parties, just like GLCanvas provides GL objects to its listeners.
- Author:
- Russell Cagle
Copyright 2006 Partner Software, Inc.
|
Constructor Summary |
EZ2DGLCanvas(boolean useLightweightCanvas)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
highQuality
public boolean highQuality
EZ2DGLCanvas
public EZ2DGLCanvas(boolean useLightweightCanvas)
addTextureImpl
protected void addTextureImpl(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
GLTexture texture)
reloadTextures
protected void reloadTextures(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
removeTextureImpl
protected void removeTextureImpl(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
GLTexture texture)
syncTextures
protected void syncTextures(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu)
addTexture
protected void addTexture(GLTexture texture)
- Called when a texture is added to the GLTextureManager.
- Parameters:
texture -
removeTexture
protected void removeTexture(GLTexture texture)
- Called when a texture is removed from the GLTextureManager.
- Parameters:
texture -
addEZ2DGLEventListener
public void addEZ2DGLEventListener(EZ2DGLEventListener listener)
removeEZ2DGLEventListener
public void removeEZ2DGLEventListener(EZ2DGLEventListener listener)
getCanvas
public java.awt.Component getCanvas()
getGLAutoDrawable
public javax.media.opengl.GLAutoDrawable getGLAutoDrawable()