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 MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
bindPose
(MemorySegment struct) Getter for field:Transform *bindPose
static void
bindPose
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Transform *bindPose
static final AddressLayout
Layout for field:Transform *bindPose
static final long
Offset for field:Transform *bindPose
static int
boneCount
(MemorySegment struct) Getter for field:int boneCount
static void
boneCount
(MemorySegment struct, int fieldValue) Setter for field:int boneCount
static final ValueLayout.OfInt
Layout for field:int boneCount
static final long
Offset for field:int boneCount
static MemorySegment
bones
(MemorySegment struct) Getter for field:BoneInfo *bones
static void
bones
(MemorySegment struct, MemorySegment fieldValue) Setter for field:BoneInfo *bones
static final AddressLayout
Layout for field:BoneInfo *bones
static final long
Offset for field:BoneInfo *bones
static final GroupLayout
layout()
The layout of this structstatic int
materialCount
(MemorySegment struct) Getter for field:int materialCount
static void
materialCount
(MemorySegment struct, int fieldValue) Setter for field:int materialCount
static final ValueLayout.OfInt
Layout for field:int materialCount
static final long
Offset for field:int materialCount
static MemorySegment
materials
(MemorySegment struct) Getter for field:Material *materials
static void
materials
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Material *materials
static final AddressLayout
Layout for field:Material *materials
static final long
Offset for field:Material *materials
static int
meshCount
(MemorySegment struct) Getter for field:int meshCount
static void
meshCount
(MemorySegment struct, int fieldValue) Setter for field:int meshCount
static final ValueLayout.OfInt
Layout for field:int meshCount
static final long
Offset for field:int meshCount
static MemorySegment
meshes
(MemorySegment struct) Getter for field:Mesh *meshes
static void
meshes
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Mesh *meshes
static final AddressLayout
Layout for field:Mesh *meshes
static final long
Offset for field:Mesh *meshes
static MemorySegment
meshMaterial
(MemorySegment struct) Getter for field:int *meshMaterial
static void
meshMaterial
(MemorySegment struct, MemorySegment fieldValue) Setter for field:int *meshMaterial
static final AddressLayout
Layout for field:int *meshMaterial
static final long
Offset for field:int *meshMaterial
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static long
sizeof()
The size (in bytes) of this structstatic MemorySegment
transform
(MemorySegment struct) Getter for field:Matrix transform
static void
transform
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Matrix transform
static final GroupLayout
Layout for field:Matrix transform
static final long
Offset 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 ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and 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) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-