Class VRSkeletalSummaryData

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VRSkeletalSummaryData
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Contains summary information about the current skeletal pose.

    Member documentation

    • flFingerCurl[5] – The amount that each finger is 'curled' inwards towards the palm.

      In the case of the thumb, this represents how much the thumb is wrapped around the fist. 0 means straight, 1 means fully curled.

    • flFingerSplay[4] – The amount that each pair of adjacent fingers are separated.

      0 means the digits are touching, 1 means they are fully separated.

    Layout

    
     struct VRSkeletalSummaryData_t {
         float flFingerCurl[5];
         float flFingerSplay[4];
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FLFINGERCURL, FLFINGERSPLAY

        The struct member offsets.
    • Constructor Detail

      • VRSkeletalSummaryData

        public VRSkeletalSummaryData​(java.nio.ByteBuffer container)
        Creates a VRSkeletalSummaryData 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • flFingerCurl

        public java.nio.FloatBuffer flFingerCurl()
        Returns a FloatBuffer view of the flFingerCurl field.
      • flFingerCurl

        public float flFingerCurl​(int index)
        Returns the value at the specified index of the flFingerCurl field.
      • flFingerSplay

        public java.nio.FloatBuffer flFingerSplay()
        Returns a FloatBuffer view of the flFingerSplay field.
      • flFingerSplay

        public float flFingerSplay​(int index)
        Returns the value at the specified index of the flFingerSplay field.
      • malloc

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

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

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

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

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

        public static VRSkeletalSummaryData mallocStack()
        Returns a new VRSkeletalSummaryData instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VRSkeletalSummaryData callocStack()
        Returns a new VRSkeletalSummaryData instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VRSkeletalSummaryData mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VRSkeletalSummaryData instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

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

        public static VRSkeletalSummaryData.Buffer callocStack​(int capacity,
                                                               org.lwjgl.system.MemoryStack stack)
        Returns a new VRSkeletalSummaryData.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nflFingerCurl

        public static java.nio.FloatBuffer nflFingerCurl​(long struct)
        Unsafe version of flFingerCurl().
      • nflFingerCurl

        public static float nflFingerCurl​(long struct,
                                          int index)
        Unsafe version of flFingerCurl.
      • nflFingerSplay

        public static java.nio.FloatBuffer nflFingerSplay​(long struct)
        Unsafe version of flFingerSplay().
      • nflFingerSplay

        public static float nflFingerSplay​(long struct,
                                           int index)
        Unsafe version of flFingerSplay.