public abstract class X11GLDrawable extends GLDrawableImpl
| Modifier and Type | Field and Description |
|---|---|
protected GLCapabilities |
capabilities |
protected GLCapabilitiesChooser |
chooser |
protected static boolean |
DEBUG |
protected long |
display |
protected long |
drawable |
protected long |
visualID |
| Constructor and Description |
|---|
X11GLDrawable(GLCapabilities capabilities,
GLCapabilitiesChooser chooser) |
| Modifier and Type | Method and Description |
|---|---|
protected XVisualInfo |
chooseVisual(boolean onscreen) |
void |
destroy()
For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed.
|
long |
getDisplay() |
long |
getDrawable() |
protected void |
lockToolkit() |
void |
setRealized(boolean val)
Indicates to on-screen GLDrawable implementations whether the
underlying window has been created and can be drawn into.
|
void |
swapBuffers()
Swaps the front and back buffers of this drawable.
|
protected void |
unlockToolkit() |
getChosenGLCapabilities, setChosenGLCapabilities, toHexStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateContext, getHeight, getWidth, setSizeprotected static final boolean DEBUG
protected long display
protected long drawable
protected long visualID
protected GLCapabilities capabilities
protected GLCapabilitiesChooser chooser
public X11GLDrawable(GLCapabilities capabilities, GLCapabilitiesChooser chooser)
public void setRealized(boolean val)
GLDrawableGLDrawableFactory.getGLDrawable() method. It must typically be
called with an argument of true in the
addNotify method of components performing OpenGL
rendering and with an argument of false in the
removeNotify method. Calling this method has no
other effects. For example, if removeNotify is
called on a Canvas implementation for which a GLDrawable has been
created, it is also necessary to destroy all OpenGL contexts
associated with that GLDrawable. This is not done automatically
by the implementation. It is not necessary to call
setRealized on a GLCanvas, a GLJPanel, or a
GLPbuffer, as these perform the appropriate calls on their
underlying GLDrawables internally..public void destroy()
GLDrawableImpldestroy in class GLDrawableImplpublic void swapBuffers()
throws GLException
GLDrawableGLAutoDrawable implementations, when automatic buffer swapping
is enabled (as is the default), this method is called
automatically and should not be called by the end user.GLExceptionpublic long getDisplay()
public long getDrawable()
protected XVisualInfo chooseVisual(boolean onscreen)
protected void lockToolkit()
protected void unlockToolkit()
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.