Class XrSpaceQueryResultFB

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

public class XrSpaceQueryResultFB extends org.lwjgl.system.Struct<XrSpaceQueryResultFB> implements org.lwjgl.system.NativeResource
Query result.
Description

The XrSpaceQueryResultFB structure is a query result returned in the RetrieveSpaceQueryResultsFB::results output parameter of the RetrieveSpaceQueryResultsFB function.

Valid Usage (Implicit)
See Also

XrSpaceQueryResultsFB, XrUuidEXT

Layout


 struct XrSpaceQueryResultFB {
     XrSpace space();
     XrUuidEXT uuid();
 }
  • Field Details

    • SIZEOF

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

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

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

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

    • XrSpaceQueryResultFB

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

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrSpaceQueryResultFB>
    • space

      public long space()
      the XrSpace handle to the spatial entity found by the query.
    • uuid

      public XrUuidEXT uuid()
      the UUID that identifies the entity.
    • malloc

      public static XrSpaceQueryResultFB malloc()
      Returns a new XrSpaceQueryResultFB instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrSpaceQueryResultFB calloc()
      Returns a new XrSpaceQueryResultFB instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrSpaceQueryResultFB create()
      Returns a new XrSpaceQueryResultFB instance allocated with BufferUtils.
    • create

      public static XrSpaceQueryResultFB create(long address)
      Returns a new XrSpaceQueryResultFB instance for the specified memory address.
    • createSafe

      public static @Nullable XrSpaceQueryResultFB createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrSpaceQueryResultFB.Buffer malloc(int capacity)
      Returns a new XrSpaceQueryResultFB.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrSpaceQueryResultFB.Buffer calloc(int capacity)
      Returns a new XrSpaceQueryResultFB.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrSpaceQueryResultFB.Buffer create(int capacity)
      Returns a new XrSpaceQueryResultFB.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrSpaceQueryResultFB.Buffer create(long address, int capacity)
      Create a XrSpaceQueryResultFB.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrSpaceQueryResultFB.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrSpaceQueryResultFB malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrSpaceQueryResultFB instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrSpaceQueryResultFB calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrSpaceQueryResultFB instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrSpaceQueryResultFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrSpaceQueryResultFB.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrSpaceQueryResultFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrSpaceQueryResultFB.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nspace

      public static long nspace(long struct)
      Unsafe version of space().
    • nuuid

      public static XrUuidEXT nuuid(long struct)
      Unsafe version of uuid().