Class XrCompositionLayerQuad

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

    public class XrCompositionLayerQuad
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, LAYERFLAGS, SPACE, EYEVISIBILITY, SUBIMAGE, POSE, SIZE

        The struct member offsets.
    • Constructor Detail

      • XrCompositionLayerQuad

        public XrCompositionLayerQuad​(java.nio.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.