Class XrCompositionLayerQuad

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

public class XrCompositionLayerQuad extends org.lwjgl.system.Struct<XrCompositionLayerQuad> implements org.lwjgl.system.NativeResource
Quad composition layer.
Description

The XrCompositionLayerQuad layer is useful for user interface elements or 2D content rendered into the virtual world. The layer’s XrSwapchainSubImage::swapchain image is applied to a quad in the virtual world space. Only front face of the quad surface is visible; the back face is not visible and must not be drawn by the runtime. A quad layer has no thickness; it is a two-dimensional object positioned and oriented in 3D space. The position of a quad refers to the center of the quad within the given XrSpace. The orientation of the quad refers to the orientation of the normal vector from the front face. The size of a quad refers to the quad’s size in the x-y plane of the given XrSpace’s coordinate system. A quad with a position of {0,0,0}, rotation of {0,0,0,1} (no rotation), and a size of {1,1} refers to a 1 meter x 1 meter quad centered at {0,0,0} with its front face normal vector coinciding with the +z axis.

Valid Usage (Implicit)
See Also

XrCompositionLayerBaseHeader, XrExtent2Df, XrPosef, XrSwapchainSubImage

Layout


 struct XrCompositionLayerQuad {
     XrStructureType type();
     void const * next();
     XrCompositionLayerFlags layerFlags();
     XrSpace space();
     XrEyeVisibility eyeVisibility();
     XrSwapchainSubImage subImage();
     XrPosef pose();
     XrExtent2Df size();
 }
  • 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.
    • LAYERFLAGS

      public static final int LAYERFLAGS
      The struct member offsets.
    • SPACE

      public static final int SPACE
      The struct member offsets.
    • EYEVISIBILITY

      public static final int EYEVISIBILITY
      The struct member offsets.
    • SUBIMAGE

      public static final int SUBIMAGE
      The struct member offsets.
    • POSE

      public static final int POSE
      The struct member offsets.
    • SIZE

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

    • XrCompositionLayerQuad

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