Class XrBodySkeletonJointFB

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

public class XrBodySkeletonJointFB extends org.lwjgl.system.Struct<XrBodySkeletonJointFB> implements org.lwjgl.system.NativeResource
Describes the location and position of a joint in the skeleton hierarchy.
Valid Usage (Implicit)
See Also

XrBodySkeletonFB, XrPosef

Layout


 struct XrBodySkeletonJointFB {
     int32_t joint();
     int32_t parentJoint();
     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.
    • JOINT

      public static final int JOINT
      The struct member offsets.
    • PARENTJOINT

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

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

    • XrBodySkeletonJointFB

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

      public int joint()
      an index of a joint using the corresponding body joint enum (e.g. XrBodyJointFB).
    • parentJoint

      public int parentJoint()
      an index of a parent joint of that joint, using the corresponding body joint enum (e.g. XrBodyJointFB).
    • 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.
    • joint

      public XrBodySkeletonJointFB joint(int value)
      Sets the specified value to the joint() field.
    • parentJoint

      public XrBodySkeletonJointFB parentJoint(int value)
      Sets the specified value to the parentJoint() field.
    • pose

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

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

      public XrBodySkeletonJointFB set(int joint, int parentJoint, 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 XrBodySkeletonJointFB malloc()
      Returns a new XrBodySkeletonJointFB instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int njoint(long struct)
      Unsafe version of joint().
    • nparentJoint

      public static int nparentJoint(long struct)
      Unsafe version of parentJoint().
    • npose

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

      public static void njoint(long struct, int value)
      Unsafe version of joint.
    • nparentJoint

      public static void nparentJoint(long struct, int value)
      Unsafe version of parentJoint.
    • npose

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