Class XrRect3DfFB

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

public class XrRect3DfFB extends org.lwjgl.system.Struct<XrRect3DfFB> implements org.lwjgl.system.NativeResource
Represents a rectangular prism containing a region of space.
Description

This structure is used for component values that may be fractional (floating-point).

The bounding box is defined by an offset and extent. The offset refers to the coordinate of the minimum corner of the box in the local space of the XrSpace; that is, the corner whose coordinate has the minimum value on each axis. The extent refers to the dimensions of the box along each axis. The maximum corner can therefore be computed as offset extent.

Valid Usage (Implicit)
See Also

XrExtent3DfFB, XrOffset3DfFB, GetSpaceBoundingBox3DFB

Layout


 struct XrRect3DfFB {
     XrOffset3DfFB offset();
     XrExtent3DfFB extent();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OFFSET
      The struct member offsets.
    • EXTENT

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

    • XrRect3DfFB

      public XrRect3DfFB(ByteBuffer container)
      Creates a XrRect3DfFB 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<XrRect3DfFB>
    • offset

      public XrOffset3DfFB offset()
      the XrOffset3DfFB specifying the rectangle offset.
    • extent

      public XrExtent3DfFB extent()
      the XrExtent3DfFB specifying the rectangle extent.
    • offset

      public XrRect3DfFB offset(XrOffset3DfFB value)
      Copies the specified XrOffset3DfFB to the offset() field.
    • offset

      public XrRect3DfFB offset(Consumer<XrOffset3DfFB> consumer)
      Passes the offset() field to the specified Consumer.
    • extent

      public XrRect3DfFB extent(XrExtent3DfFB value)
      Copies the specified XrExtent3DfFB to the extent() field.
    • extent

      public XrRect3DfFB extent(Consumer<XrExtent3DfFB> consumer)
      Passes the extent() field to the specified Consumer.
    • set

      public XrRect3DfFB set(XrOffset3DfFB offset, XrExtent3DfFB extent)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrOffset3DfFB noffset(long struct)
      Unsafe version of offset().
    • nextent

      public static XrExtent3DfFB nextent(long struct)
      Unsafe version of extent().
    • noffset

      public static void noffset(long struct, XrOffset3DfFB value)
      Unsafe version of offset.
    • nextent

      public static void nextent(long struct, XrExtent3DfFB value)
      Unsafe version of extent.