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.
type must be TYPE_COMPOSITION_LAYER_QUADnext must be NULL or a valid pointer to the next structure in a structure chainlayerFlags must be 0 or a valid combination of XrCompositionLayerFlagBits valuesspace must be a valid XrSpace handleeyeVisibility must be a valid XrEyeVisibility valuesubImage must be a valid XrSwapchainSubImage structureXrCompositionLayerBaseHeader, XrExtent2Df, XrPosef, XrSwapchainSubImage
struct XrCompositionLayerQuad {
XrStructureType type;
void const * next;
XrCompositionLayerFlags layerFlags;
XrSpace space;
XrEyeVisibility eyeVisibility;
XrSwapchainSubImage subImage;
XrPosef pose;
XrExtent2Df size;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrCompositionLayerQuad.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | EYEVISIBILITY
The struct member offsets. |
| public static final int | LAYERFLAGS
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | POSE
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SPACE
The struct member offsets. |
| public static final int | SUBIMAGE
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrCompositionLayerQuad(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrCompositionLayerQuad | |
| public static XrCompositionLayerQuad. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerQuad | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerQuad. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrCompositionLayerQuad | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrCompositionLayerQuad | |
| public static XrCompositionLayerQuad | |
| public static XrCompositionLayerQuad | create(XrCompositionLayerBaseHeader value)
Downcasts the specified |
| public static XrCompositionLayerQuad. | create(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerQuad. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrCompositionLayerQuad. | create(XrCompositionLayerBaseHeader.
Downcasts the specified |
| public static XrCompositionLayerQuad | |
| public static XrCompositionLayerQuad. | |
| public int | |
| public XrCompositionLayerQuad | |
| public long | |
| public XrCompositionLayerQuad | |
| public static XrCompositionLayerQuad | |
| public static XrCompositionLayerQuad. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerQuad | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerQuad. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrCompositionLayerQuad | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static XrPosef | |
| public static void | |
| public static XrExtent2Df | |
| public static void | |
| public static long | |
| public static void | |
| public static XrSwapchainSubImage | |
| public static void | |
| public static int | |
| public static void | |
| public XrPosef | |
| public XrCompositionLayerQuad | |
| public XrCompositionLayerQuad | |
| public XrCompositionLayerQuad | set(int type, long next, long layerFlags, XrSpace space, int eyeVisibility, XrSwapchainSubImage subImage, XrPosef pose, XrExtent2Df size)
Initializes this struct with the specified values. |
| public XrCompositionLayerQuad | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public XrExtent2Df | |
| public XrCompositionLayerQuad | |
| public XrCompositionLayerQuad | |
| public int | |
| public long | |
| public XrCompositionLayerQuad | |
| public XrSwapchainSubImage | |
| public XrCompositionLayerQuad | |
| public XrCompositionLayerQuad | subImage(Consumer<XrSwapchainSubImage> consumer)
|
| public int | |
| public XrCompositionLayerQuad | |
| public XrCompositionLayerQuad | |
| public static void |