Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sun.opengl.impl.GLDrawableImpl
com.sun.opengl.impl.x11.X11GLDrawable
public abstract class X11GLDrawable
extends GLDrawableImpl
Field Summary | |
protected static boolean | |
protected GLCapabilities | |
protected GLCapabilitiesChooser | |
protected long | |
protected long | |
protected long |
Constructor Summary | |
|
Method Summary | |
protected XVisualInfo |
|
void |
|
long | |
long | |
protected void | |
void |
|
void |
|
protected void |
Methods inherited from class com.sun.opengl.impl.GLDrawableImpl | |
destroy , toHexString |
protected static final boolean DEBUG
protected long display
protected long drawable
protected long visualID
public void destroy()
For offscreen GLDrawables (pbuffers and "pixmap" drawables), indicates that native resources should be reclaimed.
- Overrides:
- destroy in interface GLDrawableImpl
public long getDisplay()
public long getDrawable()
protected void lockToolkit()
public void setRealized(boolean val)
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 theGLDrawableFactory.getGLDrawable()
method. It must typically be called with an argument oftrue
in theaddNotify
method of components performing OpenGL rendering and with an argument offalse
in theremoveNotify
method. Calling this method has no other effects. For example, ifremoveNotify
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 callsetRealized
on a GLCanvas, a GLJPanel, or a GLPbuffer, as these perform the appropriate calls on their underlying GLDrawables internally..
- Specified by:
- setRealized in interface GLDrawable
public void swapBuffers() throws GLException
Swaps the front and back buffers of this drawable. ForGLAutoDrawable
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.
- Specified by:
- swapBuffers in interface GLDrawable
protected void unlockToolkit()