Class XrSwapchainImageOpenGLKHR

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

public class XrSwapchainImageOpenGLKHR extends org.lwjgl.system.Struct<XrSwapchainImageOpenGLKHR> implements org.lwjgl.system.NativeResource
OpenGL-specific swapchain image structure.
Description

If a given session was created with a stext:XrGraphicsBindingOpenGL*KHR, the following conditions must apply.

The OpenXR runtime must interpret the bottom-left corner of the swapchain image as the coordinate origin unless specified otherwise by extension functionality.

The OpenXR runtime must interpret the swapchain images in a clip space of positive Y pointing up, near Z plane at -1, and far Z plane at 1.

Valid Usage (Implicit)
See Also

XrSwapchainImageBaseHeader

Layout


 struct XrSwapchainImageOpenGLKHR {
     XrStructureType type();
     void * next();
     uint32_t image();
 }
  • 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.
    • IMAGE

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

    • XrSwapchainImageOpenGLKHR

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