Class XrViewLocateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, VIEWCONFIGURATIONTYPE, DISPLAYTIME, SPACE

        The struct member offsets.
    • Constructor Detail

      • XrViewLocateInfo

        public XrViewLocateInfo​(java.nio.ByteBuffer container)
        Creates a XrViewLocateInfo 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        Returns:
        the value of the type field.
      • next

        public long next()
        Returns:
        the value of the next field.
      • viewConfigurationType

        public int viewConfigurationType()
        XrViewConfigurationType to query for.
      • displayTime

        public long displayTime()
        the time for which the view poses are predicted.
      • space

        public long space()
        the XrSpace in which the pose in each XrView is expressed.
      • type

        public XrViewLocateInfo type​(int value)
        Sets the specified value to the type field.
      • next

        public XrViewLocateInfo next​(long value)
        Sets the specified value to the next field.
      • set

        public XrViewLocateInfo set​(int type,
                                    long next,
                                    int viewConfigurationType,
                                    long displayTime,
                                    XrSpace space)
        Initializes this struct with the specified values.
      • set

        public XrViewLocateInfo set​(XrViewLocateInfo src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

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

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

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

        public static int ntype​(long struct)
        Unsafe version of type().
      • nnext

        public static long nnext​(long struct)
        Unsafe version of next().
      • nviewConfigurationType

        public static int nviewConfigurationType​(long struct)
        Unsafe version of viewConfigurationType().
      • ndisplayTime

        public static long ndisplayTime​(long struct)
        Unsafe version of displayTime().
      • nspace

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

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.
      • nnext

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.
      • nviewConfigurationType

        public static void nviewConfigurationType​(long struct,
                                                  int value)
        Unsafe version of viewConfigurationType.
      • ndisplayTime

        public static void ndisplayTime​(long struct,
                                        long value)
        Unsafe version of displayTime.
      • nspace

        public static void nspace​(long struct,
                                  XrSpace value)
        Unsafe version of space.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate