Top Description Methods
org.lwjgl.opengl

public Interface Drawable

Known Direct Subinterfaces
org.lwjgl.opengl.DrawableLWJGL
Imports
org.lwjgl.LWJGLException, .PointerBuffer

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

Method Summary

Modifier and TypeMethod and Description
public void
destroy()

Destroys the Drawable.

public boolean
isCurrent()

Returns true if the Drawable's context is current in the current thread.

public void
makeCurrent()

Makes the Drawable's context current in the current thread.

public void
releaseContext()

If the Drawable's context is current in the current thread, no context will be current after a call to this method.

public void
setCLSharingProperties(PointerBuffer
The target properties buffer. It must have at least 4 positions remaining.
properties
)

Sets the appropriate khr_gl_sharing properties in the target PointerBuffer, so that if it is used in a clCreateContext(FromType) call, the created CL context will be sharing objects with this Drawable's GL context.

Method Detail

destroyback to summary
public void destroy()

Destroys the Drawable.

isCurrentback to summary
public boolean isCurrent() throws LWJGLException

Returns true if the Drawable's context is current in the current thread.

makeCurrentback to summary
public void makeCurrent() throws LWJGLException

Makes the Drawable's context current in the current thread.

releaseContextback to summary
public 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.

setCLSharingPropertiesback to summary
public void setCLSharingProperties(PointerBuffer properties) throws LWJGLException

Sets the appropriate khr_gl_sharing properties in the target PointerBuffer, so that if it is used in a clCreateContext(FromType) call, the created CL context will be sharing objects with this Drawable's GL context. After a call to this method, the target buffer position will have advanced by 2 to 4 positions, depending on the implementation.

Parameters
properties:PointerBuffer

The target properties buffer. It must have at least 4 positions remaining.