com.sun.opengl.impl.x11
Class X11GLDrawable
java.lang.Object
com.sun.opengl.impl.GLDrawableImpl
com.sun.opengl.impl.x11.X11GLDrawable
- All Implemented Interfaces:
- GLDrawable
- Direct Known Subclasses:
- X11ExternalGLDrawable, X11OffscreenGLDrawable, X11OnscreenGLDrawable, X11PbufferGLDrawable
public abstract class X11GLDrawable
- extends GLDrawableImpl
Method Summary |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
protected static final boolean DEBUG
display
protected long display
drawable
protected long drawable
visualID
protected long visualID
capabilities
protected GLCapabilities capabilities
chooser
protected GLCapabilitiesChooser chooser
X11GLDrawable
public X11GLDrawable(GLCapabilities capabilities,
GLCapabilitiesChooser chooser)
setRealized
public void setRealized(boolean val)
- Description copied from interface:
GLDrawable
- Indicates to on-screen GLDrawable implementations whether the
underlying window has been created and can be drawn into. This
method must be called from GLDrawables obtained from the
GLDrawableFactory via the
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..
destroy
public void destroy()
- Description copied from class:
GLDrawableImpl
- For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed.
- Specified by:
destroy
in class GLDrawableImpl
swapBuffers
public void swapBuffers()
throws GLException
- Description copied from interface:
GLDrawable
- Swaps the front and back buffers of this drawable. For
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.
- Throws:
GLException
getDisplay
public long getDisplay()
getDrawable
public long getDrawable()
chooseVisual
protected XVisualInfo chooseVisual(boolean onscreen)
lockToolkit
protected void lockToolkit()
unlockToolkit
protected void unlockToolkit()
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.