public class X11ExternalGLDrawable extends X11GLDrawable
capabilities, chooser, DEBUG, display, drawable, visualID| Constructor and Description |
|---|
X11ExternalGLDrawable() |
| Modifier and Type | Method and Description |
|---|---|
GLContext |
createContext(GLContext shareWith)
Creates a new context for drawing to this drawable that will
optionally share display lists and other server-side OpenGL
objects with the specified GLContext.
|
void |
destroy()
For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed.
|
int |
getHeight()
Returns the current height of this GLDrawable.
|
int |
getWidth()
Returns the current width of this GLDrawable.
|
void |
setSize(int newWidth,
int newHeight)
Requests a new width and height for this GLDrawable.
|
chooseVisual, getDisplay, getDrawable, lockToolkit, setRealized, swapBuffers, unlockToolkitgetChosenGLCapabilities, setChosenGLCapabilities, toHexStringpublic GLContext createContext(GLContext shareWith)
GLDrawable
The GLContext share need not be associated with this
GLDrawable and may be null if sharing of display lists and other
objects is not desired. See the note in the overview
documentation on
context sharing.
public void setSize(int newWidth,
int newHeight)
GLDrawablepublic int getWidth()
GLDrawablepublic int getHeight()
GLDrawablepublic void destroy()
GLDrawableImpldestroy in class X11GLDrawableCopyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.