Package com.raylib
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 Modelboolean
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()
setBindPose
(Transform value) Bones base transformation (pose)setBoneCount
(int value) Number of bonesBones information (skeleton)setMaterialCount
(int value) Number of materialssetMaterials
(Material value) Materials arraysetMeshCount
(int value) Number of meshesMeshes arraysetMeshMaterial
(IntBuffer value) Mesh material numbersetTransform
(Matrix value) Local 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
-
getMeshCount
public int getMeshCount()Number of meshes -
setMeshCount
Number of meshes -
getMaterialCount
public int getMaterialCount()Number of materials -
setMaterialCount
Number of materials -
getMeshes
Meshes array -
setMeshes
-
getMaterials
Materials array -
setMaterials
-
getMeshMaterial
Mesh material number -
setMeshMaterial
-
getBoneCount
public int getBoneCount()Number of bones -
setBoneCount
Number of bones -
getBones
Bones information (skeleton) -
setBones
-
getBindPose
Bones base transformation (pose) -
setBindPose
-