com.sun.opengl.impl
Class GLDrawableImpl

java.lang.Object
  extended by com.sun.opengl.impl.GLDrawableImpl
All Implemented Interfaces:
GLDrawable
Direct Known Subclasses:
X11GLDrawable

public abstract class GLDrawableImpl
extends java.lang.Object
implements GLDrawable


Constructor Summary
GLDrawableImpl()
           
 
Method Summary
abstract  void destroy()
          For offscreen GLDrawables (pbuffers and "pixmap" drawables), indicates that native resources should be reclaimed.
 GLCapabilities getChosenGLCapabilities()
          Fetches the GLCapabilities corresponding to the chosen OpenGL capabilities (pixel format / visual) for this drawable.
 void setChosenGLCapabilities(GLCapabilities caps)
           
static java.lang.String toHexString(long hex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.opengl.GLDrawable
createContext, getHeight, getWidth, setRealized, setSize, swapBuffers
 

Constructor Detail

GLDrawableImpl

public GLDrawableImpl()
Method Detail

destroy

public abstract void destroy()
                      throws GLException
For offscreen GLDrawables (pbuffers and "pixmap" drawables), indicates that native resources should be reclaimed.

Throws:
GLException

toHexString

public static java.lang.String toHexString(long hex)

getChosenGLCapabilities

public GLCapabilities getChosenGLCapabilities()
Description copied from interface: GLDrawable
Fetches the GLCapabilities corresponding to the chosen OpenGL capabilities (pixel format / visual) for this drawable. Some drawables, in particular on-screen drawables, may be created lazily; null is returned if the drawable is not currently created or if its pixel format has not been set yet. On some platforms, the pixel format is not directly associated with the drawable; a best attempt is made to return a reasonable value in this case.

Specified by:
getChosenGLCapabilities in interface GLDrawable

setChosenGLCapabilities

public void setChosenGLCapabilities(GLCapabilities caps)


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