Class XrExtent3DfEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrExtent3DfEXT extends XrExtent3Df

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

    • XrExtent3DfEXT

      public XrExtent3DfEXT(ByteBuffer container)
      Creates a XrExtent3DfEXT 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 XrExtent3DfEXT width(float value)
      Sets the specified value to the width field.
      Overrides:
      width in class XrExtent3Df
    • height

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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