Package org.lwjgl.opengl
Class GLXEXTImportContext
java.lang.Object
org.lwjgl.opengl.GLXEXTImportContext
Native bindings to the GLX_EXT_import_context extension.
This extension allows multiple X clients to share an indirect rendering context.
Additional convenience procedures to get the current Display* bound to a context as well as other context information are also added.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by theattribute
parameter ofQueryContextInfoEXT
.static final int
Accepted by theattribute
parameter ofQueryContextInfoEXT
.static final int
Accepted by theattribute
parameter ofQueryContextInfoEXT
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glXFreeContextEXT
(long display, long context) Frees the client-side part of a GLXContext that was created withImportContextEXT
.static long
glXGetContextIDEXT
(long context) Returns the XID of a GLXContext.static long
Returns the display associated with the current context.static long
glXImportContextEXT
(long display, long contextID) May be used in place of glXCreateContext to share another process's indirect rendering context.static int
glXQueryContextInfoEXT
(long display, long context, int attribute, int[] value) Array version of:QueryContextInfoEXT
static int
glXQueryContextInfoEXT
(long display, long context, int attribute, IntBuffer value) Obtains the value of a context's attribute.static int
nglXQueryContextInfoEXT
(long display, long context, int attribute, long value) Unsafe version of:QueryContextInfoEXT
-
Field Details
-
GLX_SHARE_CONTEXT_EXT
public static final int GLX_SHARE_CONTEXT_EXTAccepted by theattribute
parameter ofQueryContextInfoEXT
.- See Also:
-
GLX_VISUAL_ID_EXT
public static final int GLX_VISUAL_ID_EXTAccepted by theattribute
parameter ofQueryContextInfoEXT
.- See Also:
-
GLX_SCREEN_EXT
public static final int GLX_SCREEN_EXTAccepted by theattribute
parameter ofQueryContextInfoEXT
.- See Also:
-
-
Method Details
-
glXGetCurrentDisplayEXT
public static long glXGetCurrentDisplayEXT()Returns the display associated with the current context. -
nglXQueryContextInfoEXT
public static int nglXQueryContextInfoEXT(long display, long context, int attribute, long value) Unsafe version of:QueryContextInfoEXT
-
glXQueryContextInfoEXT
public static int glXQueryContextInfoEXT(long display, long context, int attribute, IntBuffer value) Obtains the value of a context's attribute.- Parameters:
display
- the connection to the X servercontext
- the context being queriedattribute
- the attribute to queryvalue
- returns the attribute value
-
glXGetContextIDEXT
public static long glXGetContextIDEXT(long context) Returns the XID of a GLXContext.- Parameters:
context
- the context
-
glXImportContextEXT
public static long glXImportContextEXT(long display, long contextID) May be used in place of glXCreateContext to share another process's indirect rendering context.- Parameters:
display
- the connection to the X servercontextID
- the context XID
-
glXFreeContextEXT
public static void glXFreeContextEXT(long display, long context) Frees the client-side part of a GLXContext that was created withImportContextEXT
.- Parameters:
display
- the connection to the X servercontext
- the context to free
-
glXQueryContextInfoEXT
public static int glXQueryContextInfoEXT(long display, long context, int attribute, int[] value) Array version of:QueryContextInfoEXT
-