Class XrFacialExpressionsHTC

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, ISACTIVE, SAMPLETIME, EXPRESSIONCOUNT, EXPRESSIONWEIGHTINGS

        The struct member offsets.
    • Constructor Detail

      • XrFacialExpressionsHTC

        public XrFacialExpressionsHTC​(java.nio.ByteBuffer container)
        Creates a XrFacialExpressionsHTC 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
      • 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.
      • isActive

        public boolean isActive()
        an XrBool32 indicating if the facial tracker is active.
      • sampleTime

        public long sampleTime()
        when in time the expression is expressed.
      • expressionCount

        public int expressionCount()
        a uint32_t describing the count of elements in expressionWeightings array.
      • expressionWeightings

        public java.nio.FloatBuffer expressionWeightings​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a float array filled in by the runtime, specifying the weightings for each blend shape.
      • set

        public XrFacialExpressionsHTC set​(int type,
                                          long next,
                                          boolean isActive,
                                          long sampleTime,
                                          int expressionCount,
                                          java.nio.FloatBuffer expressionWeightings)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

        public static int nisActive​(long struct)
        Unsafe version of isActive().
      • nsampleTime

        public static long nsampleTime​(long struct)
        Unsafe version of sampleTime().
      • nexpressionCount

        public static int nexpressionCount​(long struct)
        Unsafe version of expressionCount().
      • nexpressionWeightings

        public static java.nio.FloatBuffer nexpressionWeightings​(long struct,
                                                                 int capacity)
        Unsafe version of expressionWeightings.
      • 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.
      • nisActive

        public static void nisActive​(long struct,
                                     int value)
        Unsafe version of isActive.
      • nsampleTime

        public static void nsampleTime​(long struct,
                                       long value)
        Unsafe version of sampleTime.
      • nexpressionCount

        public static void nexpressionCount​(long struct,
                                            int value)
        Unsafe version of expressionCount.
      • nexpressionWeightings

        public static void nexpressionWeightings​(long struct,
                                                 java.nio.FloatBuffer value)
        Unsafe version of expressionWeightings.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate