Class XrGraphicsBindingOpenGLXcbKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrGraphicsBindingOpenGLXcbKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    The graphics binding structure to be passed at session creation to use OpenGL on X11 via XCB.
    Description

    When creating an OpenGL-backed XrSession on any Linux/Unix platform that utilizes X11 and GLX, via the Xlib library, the application will provide a pointer to an XrGraphicsBindingOpenGLXcbKHR in the next chain of the XrSessionCreateInfo.

    The required window system configuration define to expose this structure type is USE_PLATFORM_XCB.

    Valid Usage (Implicit)
    See Also

    CreateSession

    Layout

    
     struct XrGraphicsBindingOpenGLXcbKHR {
         XrStructureType type();
         void const * next();
         xcb_connection_t * connection();
         uint32_t screenNumber();
         xcb_glx_fbconfig_t fbconfigid();
         xcb_visualid_t visualid();
         xcb_glx_drawable_t glxDrawable();
         xcb_glx_context_t glxContext();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, CONNECTION, SCREENNUMBER, FBCONFIGID, VISUALID, GLXDRAWABLE, GLXCONTEXT

        The struct member offsets.
    • Constructor Detail

      • XrGraphicsBindingOpenGLXcbKHR

        public XrGraphicsBindingOpenGLXcbKHR​(java.nio.ByteBuffer container)
        Creates a XrGraphicsBindingOpenGLXcbKHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        the XrStructureType of this structure.
      • next

        public long next()
        NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
      • connection

        public long connection()
        a valid xcb_connection_t.
      • screenNumber

        public int screenNumber()
        an index indicating which screen should be used for rendering.
      • fbconfigid

        public int fbconfigid()
        a valid XCB OpenGL GLX xcb_glx_fbconfig_t.
      • visualid

        public int visualid()
        a valid XCB OpenGL GLX xcb_visualid_t.
      • glxDrawable

        public int glxDrawable()
        a valid XCB OpenGL GLX xcb_glx_drawable_t.
      • glxContext

        public int glxContext()
        a valid XCB OpenGL GLX xcb_glx_context_t.
      • set

        public XrGraphicsBindingOpenGLXcbKHR set​(int type,
                                                 long next,
                                                 long connection,
                                                 int screenNumber,
                                                 int fbconfigid,
                                                 int visualid,
                                                 int glxDrawable,
                                                 int glxContext)
        Initializes this struct with the specified values.
      • malloc

        public static XrGraphicsBindingOpenGLXcbKHR malloc()
        Returns a new XrGraphicsBindingOpenGLXcbKHR instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static XrGraphicsBindingOpenGLXcbKHR calloc()
        Returns a new XrGraphicsBindingOpenGLXcbKHR instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static XrGraphicsBindingOpenGLXcbKHR create​(long address)
        Returns a new XrGraphicsBindingOpenGLXcbKHR instance for the specified memory address.
      • malloc

        public static XrGraphicsBindingOpenGLXcbKHR malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrGraphicsBindingOpenGLXcbKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static XrGraphicsBindingOpenGLXcbKHR calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrGraphicsBindingOpenGLXcbKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • ntype

        public static int ntype​(long struct)
        Unsafe version of type().
      • nnext

        public static long nnext​(long struct)
        Unsafe version of next().
      • nconnection

        public static long nconnection​(long struct)
        Unsafe version of connection().
      • nscreenNumber

        public static int nscreenNumber​(long struct)
        Unsafe version of screenNumber().
      • nfbconfigid

        public static int nfbconfigid​(long struct)
        Unsafe version of fbconfigid().
      • nvisualid

        public static int nvisualid​(long struct)
        Unsafe version of visualid().
      • nglxDrawable

        public static int nglxDrawable​(long struct)
        Unsafe version of glxDrawable().
      • nglxContext

        public static int nglxContext​(long struct)
        Unsafe version of glxContext().
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.
      • nnext

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.
      • nconnection

        public static void nconnection​(long struct,
                                       long value)
        Unsafe version of connection.
      • nscreenNumber

        public static void nscreenNumber​(long struct,
                                         int value)
        Unsafe version of screenNumber.
      • nfbconfigid

        public static void nfbconfigid​(long struct,
                                       int value)
        Unsafe version of fbconfigid.
      • nvisualid

        public static void nvisualid​(long struct,
                                     int value)
        Unsafe version of visualid.
      • nglxDrawable

        public static void nglxDrawable​(long struct,
                                        int value)
        Unsafe version of glxDrawable.
      • nglxContext

        public static void nglxContext​(long struct,
                                       int value)
        Unsafe version of glxContext.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate