Class XrSpaceVelocityDataKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSpaceVelocityData>
org.lwjgl.openxr.XrSpaceVelocityData
org.lwjgl.openxr.XrSpaceVelocityDataKHR
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class XrSpaceVelocityDataKHR extends XrSpaceVelocityData
See XrSpaceVelocityData.

Layout


 struct XrSpaceVelocityDataKHR {
     XrSpaceVelocityFlags velocityFlags;
     XrVector3f linearVelocity;
     XrVector3f angularVelocity;
 }
  • Constructor Details

    • XrSpaceVelocityDataKHR

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

    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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