Class XrHandTrackingAimStateFB

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

public class XrHandTrackingAimStateFB extends org.lwjgl.system.Struct<XrHandTrackingAimStateFB> implements org.lwjgl.system.NativeResource
Current aiming gesture state for the hand.
Valid Usage (Implicit)
See Also

XrPosef

Layout


 struct XrHandTrackingAimStateFB {
     XrStructureType type();
     void * next();
     XrHandTrackingAimFlagsFB status();
     XrPosef aimPose();
     float pinchStrengthIndex();
     float pinchStrengthMiddle();
     float pinchStrengthRing();
     float pinchStrengthLittle();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • STATUS

      public static final int STATUS
      The struct member offsets.
    • AIMPOSE

      public static final int AIMPOSE
      The struct member offsets.
    • PINCHSTRENGTHINDEX

      public static final int PINCHSTRENGTHINDEX
      The struct member offsets.
    • PINCHSTRENGTHMIDDLE

      public static final int PINCHSTRENGTHMIDDLE
      The struct member offsets.
    • PINCHSTRENGTHRING

      public static final int PINCHSTRENGTHRING
      The struct member offsets.
    • PINCHSTRENGTHLITTLE

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

    • XrHandTrackingAimStateFB

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

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
    • status

      public long status()
      a bitmask of XrHandTrackingAimFlagBitsFB describing the availability and state of other signals.
    • aimPose

      public XrPosef aimPose()
      a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data.
    • pinchStrengthIndex

      public float pinchStrengthIndex()
      the current pinching strength for the index finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning index and thumb are fully touching.
    • pinchStrengthMiddle

      public float pinchStrengthMiddle()
      the current pinching strength for the middle finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning middle and thumb are fully touching.
    • pinchStrengthRing

      public float pinchStrengthRing()
      the current pinching strength for the ring finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning ring and thumb are fully touching.
    • pinchStrengthLittle

      public float pinchStrengthLittle()
      the current pinching strength for the little finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning little and thumb are fully touching.
    • type

      public XrHandTrackingAimStateFB type(int value)
      Sets the specified value to the type() field.
    • type$Default

      public XrHandTrackingAimStateFB type$Default()
      Sets the TYPE_HAND_TRACKING_AIM_STATE_FB value to the type() field.
    • next

      public XrHandTrackingAimStateFB next(long value)
      Sets the specified value to the next() field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • nstatus

      public static long nstatus(long struct)
      Unsafe version of status().
    • naimPose

      public static XrPosef naimPose(long struct)
      Unsafe version of aimPose().
    • npinchStrengthIndex

      public static float npinchStrengthIndex(long struct)
      Unsafe version of pinchStrengthIndex().
    • npinchStrengthMiddle

      public static float npinchStrengthMiddle(long struct)
      Unsafe version of pinchStrengthMiddle().
    • npinchStrengthRing

      public static float npinchStrengthRing(long struct)
      Unsafe version of pinchStrengthRing().
    • npinchStrengthLittle

      public static float npinchStrengthLittle(long struct)
      Unsafe version of pinchStrengthLittle().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.