Class XrPosef

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ORIENTATION, POSITION

        The struct member offsets.
    • Constructor Detail

      • XrPosef

        public XrPosef​(java.nio.ByteBuffer container)
        Creates a XrPosef 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
      • position$

        public XrPosef position$​(java.util.function.Consumer<XrVector3f> consumer)
        Passes the position$() field to the specified Consumer.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static XrPosef.Buffer calloc​(int capacity,
                                            org.lwjgl.system.MemoryStack stack)
        Returns a new XrPosef.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
      • nposition$

        public static void nposition$​(long struct,
                                      XrVector3f value)
        Unsafe version of position$.