Class Model
java.lang.Object
com.raylib.Model
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionModel()
Construct with auto memory allocator and fields initialized to zero.Model
(Matrix transform, int meshCount, int materialCount, Mesh meshes, Material materials, IntBuffer meshMaterial, int boneCount, BoneInfo bones, Transform bindPose) Construct with auto memory allocator and fields initialized as specifiedModel
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectModel
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedModel
(SegmentAllocator arena, Matrix transform, int meshCount, int materialCount, Mesh meshes, Material materials, IntBuffer meshMaterial, int boneCount, BoneInfo bones, Transform bindPose) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Model
allocateArray
(long elementCount) Allocate an array of Modelstatic Model
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of ModelbindPose()
Bones base transformation (pose)Bones base transformation (pose)int
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 equalgetArrayElement
(int index) Bones base transformation (pose)int
Number of bonesgetBones()
Bones information (skeleton)int
Number of materialsMaterials arrayint
Number of meshesMeshes arrayMesh material numberLocal transform matrixint
hashCode()
int
Number of materialsmaterialCount
(int value) Number of materialsMaterials arrayMaterials arrayint
Number of meshesmeshCount
(int value) Number of meshesmeshes()
Meshes arrayMeshes arrayMesh material numbermeshMaterial
(IntBuffer value) Mesh material numbervoid
setBindPose
(Transform value) Bones base transformation (pose)void
setBoneCount
(int value) Number of bonesvoid
Bones information (skeleton)void
setMaterialCount
(int value) Number of materialsvoid
setMaterials
(Material value) Materials arrayvoid
setMeshCount
(int value) Number of meshesvoid
Meshes arrayvoid
setMeshMaterial
(IntBuffer value) Mesh material numbervoid
setTransform
(Matrix value) Local transform matrixLocal transform matrixLocal transform matrix
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
Model
public Model()Construct with auto memory allocator and fields initialized to zero. -
Model
Construct with your owm memory allocator and fields not initialized -
Model
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Model
public Model(Matrix transform, int meshCount, int materialCount, Mesh meshes, Material materials, IntBuffer meshMaterial, int boneCount, BoneInfo bones, Transform bindPose) Construct with auto memory allocator and fields initialized as specified- Parameters:
transform
- Local transform matrixmeshCount
- Number of meshesmaterialCount
- Number of materialsmeshes
- Meshes arraymaterials
- Materials arraymeshMaterial
- Mesh material numberboneCount
- Number of bonesbones
- Bones information (skeleton)bindPose
- Bones base transformation (pose)
-
Model
public Model(SegmentAllocator arena, Matrix transform, int meshCount, int materialCount, Mesh meshes, Material materials, IntBuffer meshMaterial, int boneCount, BoneInfo bones, Transform bindPose) Construct with your own memory allocator and fields initialized as specified- Parameters:
transform
- Local transform matrixmeshCount
- Number of meshesmaterialCount
- Number of materialsmeshes
- Meshes arraymaterials
- Materials arraymeshMaterial
- Mesh material numberboneCount
- Number of bonesbones
- Bones information (skeleton)bindPose
- Bones base transformation (pose)
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Model -
allocateArray
Allocate an array of Model -
getTransform
Local transform matrix -
setTransform
Local transform matrix -
transform
Local transform matrix -
transform
-
getMeshCount
public int getMeshCount()Number of meshes -
setMeshCount
public void setMeshCount(int value) Number of meshes -
meshCount
public int meshCount()Number of meshes -
meshCount
Number of meshes -
getMaterialCount
public int getMaterialCount()Number of materials -
setMaterialCount
public void setMaterialCount(int value) Number of materials -
materialCount
public int materialCount()Number of materials -
materialCount
Number of materials -
getMeshes
Meshes array -
setMeshes
Meshes array -
meshes
Meshes array -
meshes
-
getMaterials
Materials array -
setMaterials
Materials array -
materials
Materials array -
materials
-
getMeshMaterial
Mesh material number -
setMeshMaterial
Mesh material number -
meshMaterial
Mesh material number -
meshMaterial
-
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 -
getBones
Bones information (skeleton) -
setBones
Bones information (skeleton) -
bones
Bones information (skeleton) -
bones
-
getBindPose
Bones base transformation (pose) -
setBindPose
Bones base transformation (pose) -
bindPose
Bones base transformation (pose) -
bindPose
-