Class XrFacialExpressionsHTC

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrFacialExpressionsHTC extends Struct<XrFacialExpressionsHTC> implements NativeResource

 struct XrFacialExpressionsHTC {
     XrStructureType type;
     void const * next;
     XrBool32 isActive;
     XrTime sampleTime;
     uint32_t expressionCount;
     float * expressionWeightings;
 }
  • 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.
    • ISACTIVE

      public static final int ISACTIVE
      The struct member offsets.
    • SAMPLETIME

      public static final int SAMPLETIME
      The struct member offsets.
    • EXPRESSIONCOUNT

      public static final int EXPRESSIONCOUNT
      The struct member offsets.
    • EXPRESSIONWEIGHTINGS

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

    • XrFacialExpressionsHTC

      public XrFacialExpressionsHTC(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrFacialExpressionsHTC>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • isActive

      public boolean isActive()
      Returns:
      the value of the isActive field.
    • sampleTime

      public long sampleTime()
      Returns:
      the value of the sampleTime field.
    • expressionCount

      public int expressionCount()
      Returns:
      the value of the expressionCount field.
    • expressionWeightings

      public FloatBuffer expressionWeightings(int capacity)
      Returns:
      a FloatBuffer view of the data pointed to by the expressionWeightings field.
    • type

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

      public XrFacialExpressionsHTC type$Default()
      Sets the TYPE_FACIAL_EXPRESSIONS_HTC value to the type field.
    • next

      public XrFacialExpressionsHTC next(long value)
      Sets the specified value to the next field.
    • isActive

      public XrFacialExpressionsHTC isActive(boolean value)
      Sets the specified value to the isActive field.
    • sampleTime

      public XrFacialExpressionsHTC sampleTime(long value)
      Sets the specified value to the sampleTime field.
    • expressionCount

      public XrFacialExpressionsHTC expressionCount(int value)
      Sets the specified value to the expressionCount field.
    • expressionWeightings

      public XrFacialExpressionsHTC expressionWeightings(FloatBuffer value)
      Sets the address of the specified FloatBuffer to the expressionWeightings field.
    • set

      public XrFacialExpressionsHTC set(int type, long next, boolean isActive, long sampleTime, int expressionCount, FloatBuffer expressionWeightings)
      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 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

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

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

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

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

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

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

      public static XrFacialExpressionsHTC malloc(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(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, MemoryStack stack)
      Returns a new XrFacialExpressionsHTC.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

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