Class HmdQuad

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

public class HmdQuad extends org.lwjgl.system.Struct<HmdQuad> implements org.lwjgl.system.NativeResource

Layout


 struct HmdQuad_t {
     HmdVector3_t vCorners[4];
 }
  • Field Details

    • SIZEOF

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

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

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

    • HmdQuad

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

      public HmdVector3.Buffer vCorners()
      Returns:
      a HmdVector3.Buffer view of the vCorners field.
    • vCorners

      public HmdVector3 vCorners(int index)
      Returns:
      a HmdVector3 view of the struct at the specified index of the vCorners field.
    • vCorners

      public HmdQuad vCorners(HmdVector3.Buffer value)
      Copies the specified HmdVector3.Buffer to the vCorners field.
    • vCorners

      public HmdQuad vCorners(int index, HmdVector3 value)
      Copies the specified HmdVector3 at the specified index of the vCorners field.
    • vCorners

      public HmdQuad vCorners(Consumer<HmdVector3.Buffer> consumer)
      Passes the vCorners field to the specified Consumer.
    • vCorners

      public HmdQuad vCorners(int index, Consumer<HmdVector3> consumer)
      Passes the element at index of the vCorners field to the specified Consumer.
    • set

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static HmdQuad mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static HmdQuad callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static HmdQuad mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static HmdQuad callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static HmdQuad.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static HmdQuad.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static HmdQuad.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static HmdQuad.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

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

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

      public static HmdVector3.Buffer nvCorners(long struct)
      Unsafe version of vCorners().
    • nvCorners

      public static HmdVector3 nvCorners(long struct, int index)
      Unsafe version of vCorners.
    • nvCorners

      public static void nvCorners(long struct, HmdVector3.Buffer value)
      Unsafe version of vCorners.
    • nvCorners

      public static void nvCorners(long struct, int index, HmdVector3 value)
      Unsafe version of vCorners.