Class AISkeletonBone

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class AISkeletonBone extends Struct<AISkeletonBone> implements NativeResource

 struct aiSkeletonBone {
     int mParent;
     {@link AINode struct aiNode} * mArmature;
     {@link AINode struct aiNode} * mNode;
     unsigned int mNumnWeights;
     {@link AIMesh struct aiMesh} * mMeshId;
     {@link AIVertexWeight struct aiVertexWeight} * mWeights;
     {@link AIMatrix4x4 struct aiMatrix4x4} mOffsetMatrix;
     {@link AIMatrix4x4 struct aiMatrix4x4} mLocalMatrix;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MPARENT
      The struct member offsets.
    • MARMATURE

      public static final int MARMATURE
      The struct member offsets.
    • MNODE

      public static final int MNODE
      The struct member offsets.
    • MNUMNWEIGHTS

      public static final int MNUMNWEIGHTS
      The struct member offsets.
    • MMESHID

      public static final int MMESHID
      The struct member offsets.
    • MWEIGHTS

      public static final int MWEIGHTS
      The struct member offsets.
    • MOFFSETMATRIX

      public static final int MOFFSETMATRIX
      The struct member offsets.
    • MLOCALMATRIX

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

    • AISkeletonBone

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

      public int mParent()
      Returns:
      the value of the mParent field.
    • mArmature

      public @Nullable AINode mArmature()
      Returns:
      a AINode view of the struct pointed to by the mArmature field.
    • mNode

      public @Nullable AINode mNode()
      Returns:
      a AINode view of the struct pointed to by the mNode field.
    • mNumnWeights

      public int mNumnWeights()
      Returns:
      the value of the mNumnWeights field.
    • mMeshId

      public AIMesh.Buffer mMeshId()
      Returns:
      a AIMesh.Buffer view of the struct array pointed to by the mMeshId field.
    • mWeights

      public AIVertexWeight.Buffer mWeights()
      Returns:
      a AIVertexWeight.Buffer view of the struct array pointed to by the mWeights field.
    • mOffsetMatrix

      public AIMatrix4x4 mOffsetMatrix()
      Returns:
      a AIMatrix4x4 view of the mOffsetMatrix field.
    • mLocalMatrix

      public AIMatrix4x4 mLocalMatrix()
      Returns:
      a AIMatrix4x4 view of the mLocalMatrix field.
    • mParent

      public AISkeletonBone mParent(int value)
      Sets the specified value to the mParent field.
    • mArmature

      public AISkeletonBone mArmature(@Nullable AINode value)
      Sets the address of the specified AINode to the mArmature field.
    • mNode

      public AISkeletonBone mNode(@Nullable AINode value)
      Sets the address of the specified AINode to the mNode field.
    • mNumnWeights

      public AISkeletonBone mNumnWeights(int value)
      Sets the specified value to the mNumnWeights field.
    • mMeshId

      public AISkeletonBone mMeshId(AIMesh.Buffer value)
      Sets the address of the specified AIMesh.Buffer to the mMeshId field.
    • mWeights

      public AISkeletonBone mWeights(AIVertexWeight.Buffer value)
      Sets the address of the specified AIVertexWeight.Buffer to the mWeights field.
    • mOffsetMatrix

      public AISkeletonBone mOffsetMatrix(AIMatrix4x4 value)
      Copies the specified AIMatrix4x4 to the mOffsetMatrix field.
    • mOffsetMatrix

      public AISkeletonBone mOffsetMatrix(Consumer<AIMatrix4x4> consumer)
      Passes the mOffsetMatrix field to the specified Consumer.
    • mLocalMatrix

      public AISkeletonBone mLocalMatrix(AIMatrix4x4 value)
      Copies the specified AIMatrix4x4 to the mLocalMatrix field.
    • mLocalMatrix

      public AISkeletonBone mLocalMatrix(Consumer<AIMatrix4x4> consumer)
      Passes the mLocalMatrix field to the specified Consumer.
    • set

      public AISkeletonBone set(int mParent, @Nullable AINode mArmature, @Nullable AINode mNode, int mNumnWeights, AIMesh.Buffer mMeshId, AIVertexWeight.Buffer mWeights, AIMatrix4x4 mOffsetMatrix, AIMatrix4x4 mLocalMatrix)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nmParent(long struct)
      Unsafe version of mParent().
    • nmArmature

      public static @Nullable AINode nmArmature(long struct)
      Unsafe version of mArmature().
    • nmNode

      public static @Nullable AINode nmNode(long struct)
      Unsafe version of mNode().
    • nmNumnWeights

      public static int nmNumnWeights(long struct)
      Unsafe version of mNumnWeights().
    • nmMeshId

      public static AIMesh.Buffer nmMeshId(long struct)
      Unsafe version of mMeshId().
    • nmWeights

      public static AIVertexWeight.Buffer nmWeights(long struct)
      Unsafe version of mWeights().
    • nmOffsetMatrix

      public static AIMatrix4x4 nmOffsetMatrix(long struct)
      Unsafe version of mOffsetMatrix().
    • nmLocalMatrix

      public static AIMatrix4x4 nmLocalMatrix(long struct)
      Unsafe version of mLocalMatrix().
    • nmParent

      public static void nmParent(long struct, int value)
      Unsafe version of mParent.
    • nmArmature

      public static void nmArmature(long struct, @Nullable AINode value)
      Unsafe version of mArmature.
    • nmNode

      public static void nmNode(long struct, @Nullable AINode value)
      Unsafe version of mNode.
    • nmNumnWeights

      public static void nmNumnWeights(long struct, int value)
      Sets the specified value to the mNumnWeights field of the specified struct.
    • nmMeshId

      public static void nmMeshId(long struct, AIMesh.Buffer value)
      Unsafe version of mMeshId.
    • nmWeights

      public static void nmWeights(long struct, AIVertexWeight.Buffer value)
      Unsafe version of mWeights.
    • nmOffsetMatrix

      public static void nmOffsetMatrix(long struct, AIMatrix4x4 value)
      Unsafe version of mOffsetMatrix.
    • nmLocalMatrix

      public static void nmLocalMatrix(long struct, AIMatrix4x4 value)
      Unsafe version of mLocalMatrix.
    • validate

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