Class XrBodyJointLocationHTC

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

public class XrBodyJointLocationHTC extends org.lwjgl.system.Struct<XrBodyJointLocationHTC> implements org.lwjgl.system.NativeResource
Describes the location and location flag of a body joint.
Description

XrBodyJointLocationHTC structure describes the position, orientation, and location flag of a body joint. It is populated by the runtime during a call to LocateBodyJointsHTC.

Valid Usage (Implicit)
See Also

XrBodyJointLocationsHTC, XrPosef

Layout


 struct XrBodyJointLocationHTC {
     XrSpaceLocationFlags locationFlags();
     XrPosef pose();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int LOCATIONFLAGS
      The struct member offsets.
    • POSE

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

    • XrBodyJointLocationHTC

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

      public long locationFlags()
      a bitfield, with bit masks defined in XrSpaceLocationFlagBits, to indicate which members contain valid data. For those bits that are not set, reading the relevant fields in this structure and its nested structures must be defined, but the values are unspecified and not meaningful.
    • pose

      public XrPosef pose()
      an XrPosef describing the position and orientation of the origin of a body joint within the reference frame of the corresponding XrBodyJointsLocateInfoHTC::baseSpace.
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nlocationFlags(long struct)
      Unsafe version of locationFlags().
    • npose

      public static XrPosef npose(long struct)
      Unsafe version of pose().