Class AIAnimation

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class AIAnimation extends Struct<AIAnimation> implements NativeResource

 struct aiAnimation {
     {@link AIString struct aiString} mName;
     double mDuration;
     double mTicksPerSecond;
     unsigned int mNumChannels;
     {@link AINodeAnim struct aiNodeAnim} ** mChannels;
     unsigned int mNumMeshChannels;
     {@link AIMeshAnim struct aiMeshAnim} ** mMeshChannels;
     unsigned int mNumMorphMeshChannels;
     {@link AIMeshMorphAnim struct aiMeshMorphAnim} ** mMorphMeshChannels;
 }
  • Field Details Link icon

    • SIZEOF Link icon

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • MNAME Link icon

      public static final int MNAME
      The struct member offsets.
    • MDURATION Link icon

      public static final int MDURATION
      The struct member offsets.
    • MTICKSPERSECOND Link icon

      public static final int MTICKSPERSECOND
      The struct member offsets.
    • MNUMCHANNELS Link icon

      public static final int MNUMCHANNELS
      The struct member offsets.
    • MCHANNELS Link icon

      public static final int MCHANNELS
      The struct member offsets.
    • MNUMMESHCHANNELS Link icon

      public static final int MNUMMESHCHANNELS
      The struct member offsets.
    • MMESHCHANNELS Link icon

      public static final int MMESHCHANNELS
      The struct member offsets.
    • MNUMMORPHMESHCHANNELS Link icon

      public static final int MNUMMORPHMESHCHANNELS
      The struct member offsets.
    • MMORPHMESHCHANNELS Link icon

      public static final int MMORPHMESHCHANNELS
      The struct member offsets.
  • Constructor Details Link icon

    • AIAnimation Link icon

      public AIAnimation(ByteBuffer container)
      Creates a AIAnimation 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 Link icon

    • sizeof Link icon

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<AIAnimation>
    • mName Link icon

      public AIString mName()
      Returns:
      a AIString view of the mName field.
    • mDuration Link icon

      public double mDuration()
      Returns:
      the value of the mDuration field.
    • mTicksPerSecond Link icon

      public double mTicksPerSecond()
      Returns:
      the value of the mTicksPerSecond field.
    • mNumChannels Link icon

      public int mNumChannels()
      Returns:
      the value of the mNumChannels field.
    • mChannels Link icon

      public @Nullable PointerBuffer mChannels()
      Returns:
      a PointerBuffer view of the data pointed to by the mChannels field.
    • mNumMeshChannels Link icon

      public int mNumMeshChannels()
      Returns:
      the value of the mNumMeshChannels field.
    • mMeshChannels Link icon

      public @Nullable PointerBuffer mMeshChannels()
      Returns:
      a PointerBuffer view of the data pointed to by the mMeshChannels field.
    • mNumMorphMeshChannels Link icon

      public int mNumMorphMeshChannels()
      Returns:
      the value of the mNumMorphMeshChannels field.
    • mMorphMeshChannels Link icon

      public @Nullable PointerBuffer mMorphMeshChannels()
      Returns:
      a PointerBuffer view of the data pointed to by the mMorphMeshChannels field.
    • mName Link icon

      public AIAnimation mName(AIString value)
      Copies the specified AIString to the mName field.
    • mName Link icon

      public AIAnimation mName(Consumer<AIString> consumer)
      Passes the mName field to the specified Consumer.
    • mDuration Link icon

      public AIAnimation mDuration(double value)
      Sets the specified value to the mDuration field.
    • mTicksPerSecond Link icon

      public AIAnimation mTicksPerSecond(double value)
      Sets the specified value to the mTicksPerSecond field.
    • mChannels Link icon

      public AIAnimation mChannels(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mChannels field.
    • mMeshChannels Link icon

      public AIAnimation mMeshChannels(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mMeshChannels field.
    • mMorphMeshChannels Link icon

      public AIAnimation mMorphMeshChannels(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the mMorphMeshChannels field.
    • set Link icon

      public AIAnimation set(AIString mName, double mDuration, double mTicksPerSecond, @Nullable PointerBuffer mChannels, @Nullable PointerBuffer mMeshChannels, @Nullable PointerBuffer mMorphMeshChannels)
      Initializes this struct with the specified values.
    • set Link icon

      public AIAnimation set(AIAnimation src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc Link icon

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

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

      public static AIAnimation create()
      Returns a new AIAnimation instance allocated with BufferUtils.
    • create Link icon

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

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

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

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

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

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

      public static @Nullable AIAnimation.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack Link icon

      @Deprecated public static AIAnimation mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static AIAnimation callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack Link icon

      @Deprecated public static AIAnimation mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static AIAnimation callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack Link icon

      @Deprecated public static AIAnimation.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static AIAnimation.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack Link icon

      @Deprecated public static AIAnimation.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack Link icon

      @Deprecated public static AIAnimation.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc Link icon

      public static AIAnimation malloc(MemoryStack stack)
      Returns a new AIAnimation instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc Link icon

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

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

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

      public static AIString nmName(long struct)
      Unsafe version of mName().
    • nmDuration Link icon

      public static double nmDuration(long struct)
      Unsafe version of mDuration().
    • nmTicksPerSecond Link icon

      public static double nmTicksPerSecond(long struct)
      Unsafe version of mTicksPerSecond().
    • nmNumChannels Link icon

      public static int nmNumChannels(long struct)
      Unsafe version of mNumChannels().
    • nmChannels Link icon

      public static @Nullable PointerBuffer nmChannels(long struct)
      Unsafe version of mChannels.
    • nmNumMeshChannels Link icon

      public static int nmNumMeshChannels(long struct)
      Unsafe version of mNumMeshChannels().
    • nmMeshChannels Link icon

      public static @Nullable PointerBuffer nmMeshChannels(long struct)
      Unsafe version of mMeshChannels.
    • nmNumMorphMeshChannels Link icon

      public static int nmNumMorphMeshChannels(long struct)
      Unsafe version of mNumMorphMeshChannels().
    • nmMorphMeshChannels Link icon

      public static @Nullable PointerBuffer nmMorphMeshChannels(long struct)
      Unsafe version of mMorphMeshChannels.
    • nmName Link icon

      public static void nmName(long struct, AIString value)
      Unsafe version of mName.
    • nmDuration Link icon

      public static void nmDuration(long struct, double value)
      Unsafe version of mDuration.
    • nmTicksPerSecond Link icon

      public static void nmTicksPerSecond(long struct, double value)
      Unsafe version of mTicksPerSecond.
    • nmNumChannels Link icon

      public static void nmNumChannels(long struct, int value)
      Sets the specified value to the mNumChannels field of the specified struct.
    • nmChannels Link icon

      public static void nmChannels(long struct, @Nullable PointerBuffer value)
      Unsafe version of mChannels.
    • nmNumMeshChannels Link icon

      public static void nmNumMeshChannels(long struct, int value)
      Sets the specified value to the mNumMeshChannels field of the specified struct.
    • nmMeshChannels Link icon

      public static void nmMeshChannels(long struct, @Nullable PointerBuffer value)
      Unsafe version of mMeshChannels.
    • nmNumMorphMeshChannels Link icon

      public static void nmNumMorphMeshChannels(long struct, int value)
      Sets the specified value to the mNumMorphMeshChannels field of the specified struct.
    • nmMorphMeshChannels Link icon

      public static void nmMorphMeshChannels(long struct, @Nullable PointerBuffer value)
      Unsafe version of mMorphMeshChannels.
    • validate Link icon

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