Class ModelAnimation

java.lang.Object
com.raylib.ModelAnimation

public class ModelAnimation extends Object
ModelAnimation
  • Field Details

    • memorySegment

      public final MemorySegment memorySegment
      The native FFI MemorySegment that holds the data this object wraps.
  • Constructor Details

    • ModelAnimation

      public ModelAnimation()
      Construct with auto memory allocator and fields initialized to zero.
    • ModelAnimation

      public ModelAnimation(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • ModelAnimation

      public ModelAnimation(MemorySegment memorySegment)
      Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    • ModelAnimation

      public ModelAnimation(int boneCount, int frameCount, BoneInfo bones, MemorySegment framePoses, MemorySegment name)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      boneCount - Number of bones
      frameCount - Number of animation frames
      bones - Bones information (skeleton)
      framePoses - Poses array by frame
      name - Animation name
    • ModelAnimation

      public ModelAnimation(SegmentAllocator arena, int boneCount, int frameCount, BoneInfo bones, MemorySegment framePoses, MemorySegment name)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      boneCount - Number of bones
      frameCount - Number of animation frames
      bones - Bones information (skeleton)
      framePoses - Poses array by frame
      name - Animation name
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public ModelAnimation getArrayElement(int index)
    • allocateArray

      public static ModelAnimation allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of ModelAnimation
    • allocateArray

      public static ModelAnimation allocateArray(long elementCount)
      Allocate an array of ModelAnimation
    • getBoneCount

      public int getBoneCount()
      Number of bones
    • setBoneCount

      public void setBoneCount(int value)
      Number of bones
    • boneCount

      public int boneCount()
      Number of bones
    • boneCount

      public ModelAnimation boneCount(int value)
      Number of bones
    • getFrameCount

      public int getFrameCount()
      Number of animation frames
    • setFrameCount

      public void setFrameCount(int value)
      Number of animation frames
    • frameCount

      public int frameCount()
      Number of animation frames
    • frameCount

      public ModelAnimation frameCount(int value)
      Number of animation frames
    • getBones

      public BoneInfo getBones()
      Bones information (skeleton)
    • setBones

      public void setBones(BoneInfo value)
      Bones information (skeleton)
    • bones

      public BoneInfo bones()
      Bones information (skeleton)
    • bones

      public ModelAnimation bones(BoneInfo value)
      Bones information (skeleton)
    • getFramePoses

      public MemorySegment getFramePoses()
      Poses array by frame
    • setFramePoses

      public void setFramePoses(MemorySegment value)
      Poses array by frame
    • framePoses

      public MemorySegment framePoses()
      Poses array by frame
    • framePoses

      public ModelAnimation framePoses(MemorySegment value)
      Poses array by frame
    • getName

      public MemorySegment getName()
      Animation name
    • setName

      public void setName(MemorySegment value)
      Animation name
    • name

      public MemorySegment name()
      Animation name
    • name

      public ModelAnimation name(MemorySegment value)
      Animation name