Class XrBodyJointLocationFB

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

public class XrBodyJointLocationFB extends org.lwjgl.system.Struct<XrBodyJointLocationFB> implements org.lwjgl.system.NativeResource
Describes the location and radius of a body joint.
Valid Usage (Implicit)
See Also

XrBodyJointLocationsFB, XrPosef

Layout


 struct XrBodyJointLocationFB {
     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

    • XrBodyJointLocationFB

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

      public long locationFlags()
      a bitfield, with bit masks defined in XrSpaceLocationFlagBits, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful.
    • pose

      public XrPosef pose()
      an XrPosef defining the position and orientation of the origin of a body joint within the reference frame of the corresponding XrBodyJointsLocateInfoFB::baseSpace.
    • locationFlags

      public XrBodyJointLocationFB locationFlags(long value)
      Sets the specified value to the locationFlags() field.
    • pose

      public XrBodyJointLocationFB pose(XrPosef value)
      Copies the specified XrPosef to the pose() field.
    • pose

      public XrBodyJointLocationFB pose(Consumer<XrPosef> consumer)
      Passes the pose() field to the specified Consumer.
    • set

      public XrBodyJointLocationFB set(long locationFlags, XrPosef pose)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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