Class GLX13

  • Direct Known Subclasses:
    GLX14

    public class GLX13
    extends GLX12
    Native bindings to GLX 1.3.
    • Method Detail

      • nglXGetFBConfigs

        public static long nglXGetFBConfigs​(long display,
                                            int screen,
                                            long nelements)
        Unsafe version of: GetFBConfigs
        Parameters:
        nelements - returns the number of GLXFBConfigs in the returned list
      • glXGetFBConfigs

        @Nullable
        public static PointerBuffer glXGetFBConfigs​(long display,
                                                    int screen)
        Returns the list of all GLXFBConfigs that are available on the specified screen.
        Parameters:
        display - the connection to the X server
        screen - the screen number
      • nglXChooseFBConfig

        public static long nglXChooseFBConfig​(long display,
                                              int screen,
                                              long attrib_list,
                                              long nelements)
        Unsafe version of: ChooseFBConfig
        Parameters:
        nelements - returns the number of GLXFBConfigs matched
      • glXChooseFBConfig

        @Nullable
        public static PointerBuffer glXChooseFBConfig​(long display,
                                                      int screen,
                                                      @Nullable
                                                      java.nio.IntBuffer attrib_list)
        Returns a list of GLXFBConfigs that match a list of attributes.
        Parameters:
        display - the connection to the X server
        screen - the screen number
        attrib_list - a list of attributes terminated with None
      • nglXGetFBConfigAttrib

        public static int nglXGetFBConfigAttrib​(long display,
                                                long config,
                                                int attribute,
                                                long value)
        Unsafe version of: GetFBConfigAttrib
      • glXGetFBConfigAttrib

        public static int glXGetFBConfigAttrib​(long display,
                                               long config,
                                               int attribute,
                                               java.nio.IntBuffer value)
        Queries the value of a GLX attribute for a GLXFBConfig.
        Parameters:
        display - the connection to the X server
        config - the GLXFBConfig being queried
        attribute - the attribute to query
        value - the attribute value
      • nglXGetVisualFromFBConfig

        public static long nglXGetVisualFromFBConfig​(long display,
                                                     long config)
        Unsafe version of: GetVisualFromFBConfig
      • glXGetVisualFromFBConfig

        @Nullable
        public static XVisualInfo glXGetVisualFromFBConfig​(long display,
                                                           long config)
        Retrieves the associated visual of a GLXFBConfig.
        Parameters:
        display - the connection to the X server
        config - the GLXFBConfig
      • nglXCreateWindow

        public static long nglXCreateWindow​(long display,
                                            long config,
                                            long win,
                                            long attrib_list)
        Unsafe version of: CreateWindow
      • glXCreateWindow

        public static long glXCreateWindow​(long display,
                                           long config,
                                           long win,
                                           @Nullable
                                           java.nio.IntBuffer attrib_list)
        Create an onscreen rendering area from an X Window and a desired GLXFBConfig.
        Parameters:
        display - the connection to the X server
        config - the GLXFBConfig
        win - the X Window
        attrib_list - a list of attributes terminated with None
      • nglXCreatePixmap

        public static long nglXCreatePixmap​(long display,
                                            long config,
                                            long pixmap,
                                            long attrib_list)
        Unsafe version of: CreatePixmap
      • glXCreatePixmap

        public static long glXCreatePixmap​(long display,
                                           long config,
                                           long pixmap,
                                           @Nullable
                                           java.nio.IntBuffer attrib_list)
        Creates a GLXPixmap offscreen rendering area from an X Pixmap and a desired GLXFBConfig.
        Parameters:
        display - the connection to the X server
        config - the GLXFBConfig
        pixmap - the X Pixmap
        attrib_list - a list of attributes terminated with None
      • glXDestroyPixmap

        public static void glXDestroyPixmap​(long display,
                                            long pixmap)
        Destroys a GLXPixmap.
        Parameters:
        display - the connection to the X server
        pixmap - the GLXPixmap to destroy
      • nglXCreatePbuffer

        public static long nglXCreatePbuffer​(long display,
                                             long config,
                                             long attrib_list)
        Unsafe version of: CreatePbuffer
      • glXCreatePbuffer

        public static long glXCreatePbuffer​(long display,
                                            long config,
                                            @Nullable
                                            java.nio.IntBuffer attrib_list)
        Creates a GLXPbuffer from a GLXFBConfig.
        Parameters:
        display - the connection to the X server
        config - the GLXFBConfig
        attrib_list - a list of attributes terminated with None
      • glXDestroyPbuffer

        public static void glXDestroyPbuffer​(long display,
                                             long pbuf)
        Destroys a GLXPbuffer.
        Parameters:
        display - the connection to the X server
        pbuf - the GLXPbuffer to destroy
      • nglXQueryDrawable

        public static void nglXQueryDrawable​(long display,
                                             long draw,
                                             int attribute,
                                             long value)
        Unsafe version of: QueryDrawable
      • glXQueryDrawable

        public static void glXQueryDrawable​(long display,
                                            long draw,
                                            int attribute,
                                            java.nio.IntBuffer value)
        Queries an attribute associated with a GLXDrawable.
        Parameters:
        display - the connection to the X server
        draw - the GLXDrawable being queried
        attribute - the attribute to query
        value - returns the attribute value
      • glXQueryDrawable

        public static int glXQueryDrawable​(long display,
                                           long draw,
                                           int attribute)
        Queries an attribute associated with a GLXDrawable.
        Parameters:
        display - the connection to the X server
        draw - the GLXDrawable being queried
        attribute - the attribute to query
      • glXCreateNewContext

        public static long glXCreateNewContext​(long display,
                                               long config,
                                               int render_type,
                                               long share_list,
                                               boolean direct)
        Creates an OpenGL rendering context.
        Parameters:
        display - the connection to the X server
        config - the GLXFBConfig
        render_type - the render type
        share_list - a GLXContext to share objects with
        direct - whether direct rendering is requested
      • glXMakeContextCurrent

        public static boolean glXMakeContextCurrent​(long display,
                                                    long draw,
                                                    long read,
                                                    long ctx)
        Makes a GLXContext current in the current thread.
        Parameters:
        display - the connection to the X server
        draw - the draw GLXDrawable
        read - the read GLXDrawable
        ctx - the GLXContext
      • glXGetCurrentReadDrawable

        public static long glXGetCurrentReadDrawable()
        Returns the current GLXDrawable used for reading in the current thread.
      • nglXQueryContext

        public static int nglXQueryContext​(long display,
                                           long ctx,
                                           int attribute,
                                           long value)
        Unsafe version of: QueryContext
      • glXQueryContext

        public static int glXQueryContext​(long display,
                                          long ctx,
                                          int attribute,
                                          java.nio.IntBuffer value)
        Queries the value of a GLXContext attribute.
        Parameters:
        display - the connection to the X server
        ctx - the GLXContext being queried
        attribute - the attribute to query
        value - returns the attribute value
      • glXSelectEvent

        public static void glXSelectEvent​(long display,
                                          long draw,
                                          long event_mask)
        Selects which GLX events should be received on a GLXDrawable.
        Parameters:
        display - the connection to the X server
        draw - the GLXDrawable
        event_mask - the selection mask
      • nglXGetSelectedEvent

        public static void nglXGetSelectedEvent​(long display,
                                                long draw,
                                                long event_mask)
        Unsafe version of: GetSelectedEvent
      • glXGetSelectedEvent

        public static void glXGetSelectedEvent​(long display,
                                               long draw,
                                               PointerBuffer event_mask)
        Returns which GLX events are selected for a GLXDrawable.
        Parameters:
        display - the connection to the X server
        draw - the GLXDrawable
        event_mask - returns the selection mask
      • glXChooseFBConfig

        @Nullable
        public static PointerBuffer glXChooseFBConfig​(long display,
                                                      int screen,
                                                      @Nullable
                                                      int[] attrib_list)
        Array version of: ChooseFBConfig
      • glXGetFBConfigAttrib

        public static int glXGetFBConfigAttrib​(long display,
                                               long config,
                                               int attribute,
                                               int[] value)
        Array version of: GetFBConfigAttrib
      • glXCreateWindow

        public static long glXCreateWindow​(long display,
                                           long config,
                                           long win,
                                           @Nullable
                                           int[] attrib_list)
        Array version of: CreateWindow
      • glXCreatePixmap

        public static long glXCreatePixmap​(long display,
                                           long config,
                                           long pixmap,
                                           @Nullable
                                           int[] attrib_list)
        Array version of: CreatePixmap
      • glXCreatePbuffer

        public static long glXCreatePbuffer​(long display,
                                            long config,
                                            @Nullable
                                            int[] attrib_list)
        Array version of: CreatePbuffer
      • glXQueryDrawable

        public static void glXQueryDrawable​(long display,
                                            long draw,
                                            int attribute,
                                            int[] value)
        Array version of: QueryDrawable
      • glXQueryContext

        public static int glXQueryContext​(long display,
                                          long ctx,
                                          int attribute,
                                          int[] value)
        Array version of: QueryContext