com.sun.opengl.impl.x11

Class X11ExternalGLDrawable

Implemented Interfaces:
GLDrawable

public class X11ExternalGLDrawable
extends X11GLDrawable

Field Summary

Fields inherited from class com.sun.opengl.impl.x11.X11GLDrawable

DEBUG, capabilities, chooser, display, drawable, visualID

Constructor Summary

X11ExternalGLDrawable()

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.
void
setSize(int newWidth, int newHeight)
Requests a new width and height for this GLDrawable.

Methods inherited from class com.sun.opengl.impl.x11.X11GLDrawable

chooseVisual, destroy, getDisplay, getDrawable, lockToolkit, setRealized, swapBuffers, unlockToolkit

Methods inherited from class com.sun.opengl.impl.GLDrawableImpl

destroy, toHexString

Constructor Details

X11ExternalGLDrawable

public X11ExternalGLDrawable()

Method Details

createContext

public 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.

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.

Specified by:
createContext in interface GLDrawable

destroy

public void destroy()
For offscreen GLDrawables (pbuffers and "pixmap" drawables), indicates that native resources should be reclaimed.
Overrides:
destroy in interface X11GLDrawable

getHeight

public int getHeight()
Returns the current height of this GLDrawable.
Specified by:
getHeight in interface GLDrawable

getWidth

public int getWidth()
Returns the current width of this GLDrawable.
Specified by:
getWidth in interface GLDrawable

setSize

public void setSize(int newWidth,
                    int newHeight)
Requests a new width and height for this GLDrawable. Not all drawables are able to respond to this request and may silently ignore it.
Specified by:
setSize in interface GLDrawable

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.