Class ModelAnimation
java.lang.Object
com.raylib.ModelAnimation
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.ModelAnimation
(int boneCount, int frameCount, BoneInfo bones, MemorySegment framePoses, MemorySegment name) Construct with auto memory allocator and fields initialized as specifiedModelAnimation
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectModelAnimation
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedModelAnimation
(SegmentAllocator arena, int boneCount, int frameCount, BoneInfo bones, MemorySegment framePoses, MemorySegment name) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelAnimation
allocateArray
(long elementCount) Allocate an array of ModelAnimationstatic ModelAnimation
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of ModelAnimationint
Number of bonesboneCount
(int value) Number of bonesbones()
Bones information (skeleton)Bones information (skeleton)boolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalint
Number of animation framesframeCount
(int value) Number of animation framesPoses array by frameframePoses
(MemorySegment value) Poses array by framegetArrayElement
(int index) int
Number of bonesgetBones()
Bones information (skeleton)int
Number of animation framesPoses array by framegetName()
Animation nameint
hashCode()
name()
Animation namename
(MemorySegment value) Animation namevoid
setBoneCount
(int value) Number of bonesvoid
Bones information (skeleton)void
setFrameCount
(int value) Number of animation framesvoid
setFramePoses
(MemorySegment value) Poses array by framevoid
setName
(MemorySegment value) Animation name
-
Field Details
-
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
Construct with your owm memory allocator and fields not initialized -
ModelAnimation
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 bonesframeCount
- Number of animation framesbones
- Bones information (skeleton)framePoses
- Poses array by framename
- 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 bonesframeCount
- Number of animation framesbones
- Bones information (skeleton)framePoses
- Poses array by framename
- Animation name
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of ModelAnimation -
allocateArray
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
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
Number of animation frames -
getBones
Bones information (skeleton) -
setBones
Bones information (skeleton) -
bones
Bones information (skeleton) -
bones
Bones information (skeleton) -
getFramePoses
Poses array by frame -
setFramePoses
Poses array by frame -
framePoses
Poses array by frame -
framePoses
Poses array by frame -
getName
Animation name -
setName
Animation name -
name
Animation name -
name
Animation name
-