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, toHexString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContext, getHeight, getWidth, setSize
protected 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)
GLDrawable
GLDrawableFactory.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()
GLDrawableImpl
destroy
in class GLDrawableImpl
public void swapBuffers() throws GLException
GLDrawable
GLAutoDrawable
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.GLException
public 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.