Class XrGraphicsBindingOpenGLWaylandKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrGraphicsBindingOpenGLWaylandKHR>
org.lwjgl.openxr.XrGraphicsBindingOpenGLWaylandKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrGraphicsBindingOpenGLWaylandKHR extends org.lwjgl.system.Struct<XrGraphicsBindingOpenGLWaylandKHR> implements org.lwjgl.system.NativeResource
The graphics binding structure to be passed at session creation to use OpenGL on Wayland.
Description

When creating an OpenGL-backed XrSession on any Linux/Unix platform that utilizes the Wayland protocol with its compositor, the application will provide a pointer to an XrGraphicsBindingOpenGLWaylandKHR in the next chain of the XrSessionCreateInfo.

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

Valid Usage (Implicit)
See Also

CreateSession

Layout


 struct XrGraphicsBindingOpenGLWaylandKHR {
     XrStructureType type();
     void const * next();
     struct wl_display * display();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • DISPLAY

      public static final int DISPLAY
      The struct member offsets.
  • Constructor Details

    • XrGraphicsBindingOpenGLWaylandKHR

      public XrGraphicsBindingOpenGLWaylandKHR(ByteBuffer container)
      Creates a XrGraphicsBindingOpenGLWaylandKHR 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 Details