org.lwjgl.opengl
Interface Drawable


public interface Drawable

The Drawable interface describes an OpenGL drawable with an associated Context.

Author:
elias_naur

Method Summary
 void destroy()
          Destroys the Drawable.
 boolean isCurrent()
          Returns true if the Drawable's context is current in the current thread.
 void makeCurrent()
          Makes the Drawable's context current in the current thread.
 void releaseContext()
          If the Drawable's context is current in the current thread, no context will be current after a call to this method.
 

Method Detail

isCurrent

boolean isCurrent()
                  throws LWJGLException
Returns true if the Drawable's context is current in the current thread.

Throws:
LWJGLException

makeCurrent

void makeCurrent()
                 throws LWJGLException
Makes the Drawable's context current in the current thread.

Throws:
LWJGLException

releaseContext

void releaseContext()
                    throws LWJGLException
If the Drawable's context is current in the current thread, no context will be current after a call to this method.

Throws:
LWJGLException

destroy

void destroy()
Destroys the Drawable.



Copyright © 2002-2009 lwjgl.org. All Rights Reserved.