Class XrExtent3DfFB

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrExtent3DfFB extends XrExtent3Df

 struct XrExtent3DfFB {
     float width;
     float height;
     float depth;
 }
  • Constructor Details

    • XrExtent3DfFB

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

    • width

      public XrExtent3DfFB width(float value)
      Sets the specified value to the width field.
      Overrides:
      width in class XrExtent3Df
    • height

      public XrExtent3DfFB height(float value)
      Sets the specified value to the height field.
      Overrides:
      height in class XrExtent3Df
    • depth

      public XrExtent3DfFB depth(float value)
      Sets the specified value to the depth field.
      Overrides:
      depth in class XrExtent3Df
    • set

      public XrExtent3DfFB set(float width, float height, float depth)
      Initializes this struct with the specified values.
      Overrides:
      set in class XrExtent3Df
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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