| Modifier and Type | Field | Description |
|---|---|---|
protected org.lwjgl.opengl.ContextGL |
context |
The OpenGL Context.
|
protected org.lwjgl.opengl.PeerInfo |
peer_info |
Handle to the native GL rendering context
|
protected PixelFormat |
pixel_format |
The PixelFormat used to create the drawable.
|
| Constructor | Description |
|---|---|
SharedDrawable(Drawable drawable) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
checkDestroyed() |
|
void |
checkGLError() |
|
org.lwjgl.opengl.ContextGL |
createSharedContext() |
|
void |
destroy() |
Destroys the Drawable.
|
org.lwjgl.opengl.ContextGL |
getContext() |
|
PixelFormatLWJGL |
getPixelFormat() |
|
void |
initContext(float r,
float g,
float b) |
|
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. |
void |
setPixelFormat(PixelFormatLWJGL pf) |
|
void |
setPixelFormat(PixelFormatLWJGL pf,
ContextAttribs attribs) |
|
void |
setSwapInterval(int swap_interval) |
|
void |
swapBuffers() |
protected PixelFormat pixel_format
protected org.lwjgl.opengl.PeerInfo peer_info
protected org.lwjgl.opengl.ContextGL context
public SharedDrawable(Drawable drawable) throws LWJGLException
LWJGLExceptionpublic org.lwjgl.opengl.ContextGL createSharedContext()
public void setPixelFormat(PixelFormatLWJGL pf) throws LWJGLException
LWJGLExceptionpublic void setPixelFormat(PixelFormatLWJGL pf, ContextAttribs attribs) throws LWJGLException
LWJGLExceptionpublic PixelFormatLWJGL getPixelFormat()
public org.lwjgl.opengl.ContextGL getContext()
public void checkGLError()
public void setSwapInterval(int swap_interval)
public void swapBuffers()
throws LWJGLException
LWJGLExceptionpublic void initContext(float r,
float g,
float b)
public boolean isCurrent()
throws LWJGLException
DrawableisCurrent in interface DrawableLWJGLExceptionpublic void makeCurrent()
throws LWJGLException
DrawablemakeCurrent in interface DrawableLWJGLExceptionpublic void releaseContext()
throws LWJGLException
DrawablereleaseContext in interface DrawableLWJGLExceptionpublic void destroy()
Drawablepublic void setCLSharingProperties(PointerBuffer properties) throws LWJGLException
DrawablePointerBuffer,
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.setCLSharingProperties in interface Drawableproperties - The target properties buffer. It must have at least 4 positions remaining.LWJGLExceptionprotected final void checkDestroyed()
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.