|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Drawable
The Drawable interface describes an OpenGL drawable with an associated Context.
| 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. |
void |
setCLSharingProperties(PointerBuffer 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 |
|---|
boolean isCurrent()
throws LWJGLException
LWJGLException
void makeCurrent()
throws LWJGLException
LWJGLException
void releaseContext()
throws LWJGLException
LWJGLExceptionvoid destroy()
void setCLSharingProperties(PointerBuffer properties)
throws LWJGLException
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.
properties - The target properties buffer. It must have at least 4 positions remaining.
LWJGLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||