Class GLXEXTImportContext


  • public class GLXEXTImportContext
    extends java.lang.Object
    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.

    • Method Detail

      • 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,
                                                 java.nio.IntBuffer value)
        Obtains the value of a context's attribute.
        Parameters:
        display - the connection to the X server
        context - the context being queried
        attribute - the attribute to query
        value - 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 server
        contextID - the context XID
      • glXFreeContextEXT

        public static void glXFreeContextEXT​(long display,
                                             long context)
        Frees the client-side part of a GLXContext that was created with ImportContextEXT.
        Parameters:
        display - the connection to the X server
        context - the context to free
      • glXQueryContextInfoEXT

        public static int glXQueryContextInfoEXT​(long display,
                                                 long context,
                                                 int attribute,
                                                 int[] value)
        Array version of: QueryContextInfoEXT