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
FieldsModifier and TypeFieldDescriptionstatic final intAccepted by theattributeparameter ofQueryContextInfoEXT.static final intAccepted by theattributeparameter ofQueryContextInfoEXT.static final intAccepted by theattributeparameter ofQueryContextInfoEXT. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglXFreeContextEXT(long display, long context) Frees the client-side part of a GLXContext that was created withImportContextEXT.static longglXGetContextIDEXT(long context) Returns the XID of a GLXContext.static longReturns the display associated with the current context.static longglXImportContextEXT(long display, long contextID) May be used in place of glXCreateContext to share another process's indirect rendering context.static intglXQueryContextInfoEXT(long display, long context, int attribute, int[] value) Array version of:QueryContextInfoEXTstatic intglXQueryContextInfoEXT(long display, long context, int attribute, IntBuffer value) Obtains the value of a context's attribute.static intnglXQueryContextInfoEXT(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 theattributeparameter ofQueryContextInfoEXT.- See Also:
-
GLX_VISUAL_ID_EXT
public static final int GLX_VISUAL_ID_EXTAccepted by theattributeparameter ofQueryContextInfoEXT.- See Also:
-
GLX_SCREEN_EXT
public static final int GLX_SCREEN_EXTAccepted by theattributeparameter 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
-