Class XrBoxfKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrBoxfKHR extends XrBoxf

 struct XrBoxfKHR {
     {@link XrPosef XrPosef} center;
     {@link XrExtent3Df XrExtent3Df} extents;
 }
  • Constructor Details

    • XrBoxfKHR

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

    • center

      public XrBoxfKHR center(XrPosef value)
      Copies the specified XrPosef to the center field.
      Overrides:
      center in class XrBoxf
    • center

      public XrBoxfKHR center(Consumer<XrPosef> consumer)
      Passes the center field to the specified Consumer.
      Overrides:
      center in class XrBoxf
    • extents

      public XrBoxfKHR extents(XrExtent3Df value)
      Copies the specified XrExtent3Df to the extents field.
      Overrides:
      extents in class XrBoxf
    • extents

      public XrBoxfKHR extents(Consumer<XrExtent3Df> consumer)
      Passes the extents field to the specified Consumer.
      Overrides:
      extents in class XrBoxf
    • set

      public XrBoxfKHR set(XrPosef center, XrExtent3Df extents)
      Initializes this struct with the specified values.
      Overrides:
      set in class XrBoxf
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrBoxfKHR.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrBoxfKHR.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