com.sun.opengl.impl.x11
Class X11OffscreenGLDrawable
java.lang.Object
com.sun.opengl.impl.GLDrawableImpl
com.sun.opengl.impl.x11.X11GLDrawable
com.sun.opengl.impl.x11.X11OffscreenGLDrawable
- All Implemented Interfaces:
- GLDrawable
public class X11OffscreenGLDrawable
- extends X11GLDrawable
Method Summary |
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. |
boolean |
isDoubleBuffered()
|
void |
setSize(int newWidth,
int newHeight)
Requests a new width and height for this GLDrawable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X11OffscreenGLDrawable
public X11OffscreenGLDrawable(GLCapabilities capabilities,
GLCapabilitiesChooser chooser)
createContext
public GLContext createContext(GLContext shareWith)
- Description copied from interface:
GLDrawable
- 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.
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.
setSize
public void setSize(int newWidth,
int newHeight)
- Description copied from interface:
GLDrawable
- Requests a new width and height for this GLDrawable. Not all
drawables are able to respond to this request and may silently
ignore it.
getWidth
public int getWidth()
- Description copied from interface:
GLDrawable
- Returns the current width of this GLDrawable.
getHeight
public int getHeight()
- Description copied from interface:
GLDrawable
- Returns the current height of this GLDrawable.
destroy
public void destroy()
- Description copied from class:
GLDrawableImpl
- For offscreen GLDrawables (pbuffers and "pixmap" drawables),
indicates that native resources should be reclaimed.
- Overrides:
destroy
in class X11GLDrawable
isDoubleBuffered
public boolean isDoubleBuffered()
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.