Package com.raylib
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 ModelAnimationboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) int
Number of bonesgetBones()
Bones information (skeleton)int
Number of animation framesPoses array by framegetName()
Animation nameint
hashCode()
setBoneCount
(int value) Number of bonesBones information (skeleton)setFrameCount
(int value) Number of animation framessetFramePoses
(MemorySegment value) Poses array by framesetName
(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
Number of bones -
getFrameCount
public int getFrameCount()Number of animation frames -
setFrameCount
Number of animation frames -
getBones
Bones information (skeleton) -
setBones
Bones information (skeleton) -
getFramePoses
Poses array by frame -
setFramePoses
Poses array by frame -
getName
Animation name -
setName
Animation name
-