Package com.raylib.jextract
Class Model
java.lang.Object
com.raylib.jextract.Model
struct Model {
Matrix transform;
int meshCount;
int materialCount;
Mesh *meshes;
Material *materials;
int *meshMaterial;
int boneCount;
BoneInfo *bones;
Transform *bindPose;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentbindPose(MemorySegment struct) Getter for field:Transform *bindPosestatic voidbindPose(MemorySegment struct, MemorySegment fieldValue) Setter for field:Transform *bindPosestatic final AddressLayoutLayout for field:Transform *bindPosestatic final longOffset for field:Transform *bindPosestatic intboneCount(MemorySegment struct) Getter for field:int boneCountstatic voidboneCount(MemorySegment struct, int fieldValue) Setter for field:int boneCountstatic final ValueLayout.OfIntLayout for field:int boneCountstatic final longOffset for field:int boneCountstatic MemorySegmentbones(MemorySegment struct) Getter for field:BoneInfo *bonesstatic voidbones(MemorySegment struct, MemorySegment fieldValue) Setter for field:BoneInfo *bonesstatic final AddressLayoutLayout for field:BoneInfo *bonesstatic final longOffset for field:BoneInfo *bonesstatic final GroupLayoutlayout()The layout of this structstatic intmaterialCount(MemorySegment struct) Getter for field:int materialCountstatic voidmaterialCount(MemorySegment struct, int fieldValue) Setter for field:int materialCountstatic final ValueLayout.OfIntLayout for field:int materialCountstatic final longOffset for field:int materialCountstatic MemorySegmentmaterials(MemorySegment struct) Getter for field:Material *materialsstatic voidmaterials(MemorySegment struct, MemorySegment fieldValue) Setter for field:Material *materialsstatic final AddressLayoutLayout for field:Material *materialsstatic final longOffset for field:Material *materialsstatic intmeshCount(MemorySegment struct) Getter for field:int meshCountstatic voidmeshCount(MemorySegment struct, int fieldValue) Setter for field:int meshCountstatic final ValueLayout.OfIntLayout for field:int meshCountstatic final longOffset for field:int meshCountstatic MemorySegmentmeshes(MemorySegment struct) Getter for field:Mesh *meshesstatic voidmeshes(MemorySegment struct, MemorySegment fieldValue) Setter for field:Mesh *meshesstatic final AddressLayoutLayout for field:Mesh *meshesstatic final longOffset for field:Mesh *meshesstatic MemorySegmentmeshMaterial(MemorySegment struct) Getter for field:int *meshMaterialstatic voidmeshMaterial(MemorySegment struct, MemorySegment fieldValue) Setter for field:int *meshMaterialstatic final AddressLayoutLayout for field:int *meshMaterialstatic final longOffset for field:int *meshMaterialstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this structstatic MemorySegmenttransform(MemorySegment struct) Getter for field:Matrix transformstatic voidtransform(MemorySegment struct, MemorySegment fieldValue) Setter for field:Matrix transformstatic final GroupLayoutLayout for field:Matrix transformstatic final longOffset for field:Matrix transform
-
Method Details
-
layout
The layout of this struct -
transform$layout
Layout for field:Matrix transform -
transform$offset
public static final long transform$offset()Offset for field:Matrix transform -
transform
Getter for field:Matrix transform -
transform
Setter for field:Matrix transform -
meshCount$layout
Layout for field:int meshCount -
meshCount$offset
public static final long meshCount$offset()Offset for field:int meshCount -
meshCount
Getter for field:int meshCount -
meshCount
Setter for field:int meshCount -
materialCount$layout
Layout for field:int materialCount -
materialCount$offset
public static final long materialCount$offset()Offset for field:int materialCount -
materialCount
Getter for field:int materialCount -
materialCount
Setter for field:int materialCount -
meshes$layout
Layout for field:Mesh *meshes -
meshes$offset
public static final long meshes$offset()Offset for field:Mesh *meshes -
meshes
Getter for field:Mesh *meshes -
meshes
Setter for field:Mesh *meshes -
materials$layout
Layout for field:Material *materials -
materials$offset
public static final long materials$offset()Offset for field:Material *materials -
materials
Getter for field:Material *materials -
materials
Setter for field:Material *materials -
meshMaterial$layout
Layout for field:int *meshMaterial -
meshMaterial$offset
public static final long meshMaterial$offset()Offset for field:int *meshMaterial -
meshMaterial
Getter for field:int *meshMaterial -
meshMaterial
Setter for field:int *meshMaterial -
boneCount$layout
Layout for field:int boneCount -
boneCount$offset
public static final long boneCount$offset()Offset for field:int boneCount -
boneCount
Getter for field:int boneCount -
boneCount
Setter for field:int boneCount -
bones$layout
Layout for field:BoneInfo *bones -
bones$offset
public static final long bones$offset()Offset for field:BoneInfo *bones -
bones
Getter for field:BoneInfo *bones -
bones
Setter for field:BoneInfo *bones -
bindPose$layout
Layout for field:Transform *bindPose -
bindPose$offset
public static final long bindPose$offset()Offset for field:Transform *bindPose -
bindPose
Getter for field:Transform *bindPose -
bindPose
Setter for field:Transform *bindPose -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-