Class XrFaceExpressionStatusFB

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

public class XrFaceExpressionStatusFB extends org.lwjgl.system.Struct<XrFaceExpressionStatusFB> implements org.lwjgl.system.NativeResource
Describes the status of facial expression weights.
Description

If the returned isValid is FALSE, then it indicates that the face tracker failed to track or lost track of the face, or the application lost focus, or the consent for face tracking was denied.

If the returned isValid is TRUE, the runtime must return all weights (or all weights except eyes related weights, see isEyeFollowingBlendshapesValid).

If the returned isEyeFollowingBlendshapesValid is FALSE, then it indicates that the eye tracking driving blendshapes with prefix XR_FACE_EXPRESSION_EYES_LOOK_* lost track or the consent for eye tracking was denied.

Valid Usage (Implicit)
See Also

XrFaceExpressionWeightsFB

Layout


 struct XrFaceExpressionStatusFB {
     XrBool32 isValid();
     XrBool32 isEyeFollowingBlendshapesValid();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ISVALID
      The struct member offsets.
    • ISEYEFOLLOWINGBLENDSHAPESVALID

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

    • XrFaceExpressionStatusFB

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

      public boolean isValid()
      an XrBool32 which indicates that the tracked expression weights are valid.
    • isEyeFollowingBlendshapesValid

      public boolean isEyeFollowingBlendshapesValid()
      an XrBool32 which indicates if the 8 expression weights with prefix XR_FACE_EXPRESSION_EYES_LOOK_* are valid.
    • isValid

      public XrFaceExpressionStatusFB isValid(boolean value)
      Sets the specified value to the isValid() field.
    • isEyeFollowingBlendshapesValid

      public XrFaceExpressionStatusFB isEyeFollowingBlendshapesValid(boolean value)
      Sets the specified value to the isEyeFollowingBlendshapesValid() field.
    • set

      public XrFaceExpressionStatusFB set(boolean isValid, boolean isEyeFollowingBlendshapesValid)
      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 XrFaceExpressionStatusFB malloc()
      Returns a new XrFaceExpressionStatusFB instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nisValid(long struct)
      Unsafe version of isValid().
    • nisEyeFollowingBlendshapesValid

      public static int nisEyeFollowingBlendshapesValid(long struct)
    • nisValid

      public static void nisValid(long struct, int value)
      Unsafe version of isValid.
    • nisEyeFollowingBlendshapesValid

      public static void nisEyeFollowingBlendshapesValid(long struct, int value)