Package org.lwjgl.opengl
Class GLXEXTImportContext
- java.lang.Object
-
- org.lwjgl.opengl.GLXEXTImportContext
-
public class GLXEXTImportContext extends java.lang.ObjectNative 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
Fields Modifier and Type Field and Description static intGLX_SCREEN_EXT
GLX_SHARE_CONTEXT_EXT
GLX_VISUAL_ID_EXTAccepted by theattributeparameter ofQueryContextInfoEXT.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static 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 longglXGetCurrentDisplayEXT()Returns 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, java.nio.IntBuffer value)Obtains the value of a context's attribute.
-
-
-
Field Detail
-
GLX_SHARE_CONTEXT_EXT, GLX_VISUAL_ID_EXT, GLX_SCREEN_EXT
Accepted by theattributeparameter ofQueryContextInfoEXT.
-
-
Method Detail
-
glXGetCurrentDisplayEXT
public static long glXGetCurrentDisplayEXT()
Returns the display associated with the current context.
-
glXQueryContextInfoEXT
public static int glXQueryContextInfoEXT(long display, long context, int attribute, java.nio.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
-
-