Package com.raylib.jextract
Class rlDrawCall
java.lang.Object
com.raylib.jextract.rlDrawCall
struct rlDrawCall {
int mode;
int vertexCount;
int vertexAlignment;
unsigned int textureId;
}
-
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 final GroupLayout
layout()
The layout of this structstatic int
mode
(MemorySegment struct) Getter for field:int mode
static void
mode
(MemorySegment struct, int fieldValue) Setter for field:int mode
static final ValueLayout.OfInt
Layout for field:int mode
static final long
Offset for field:int mode
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 int
textureId
(MemorySegment struct) Getter for field:unsigned int textureId
static void
textureId
(MemorySegment struct, int fieldValue) Setter for field:unsigned int textureId
static final ValueLayout.OfInt
Layout for field:unsigned int textureId
static final long
Offset for field:unsigned int textureId
static int
vertexAlignment
(MemorySegment struct) Getter for field:int vertexAlignment
static void
vertexAlignment
(MemorySegment struct, int fieldValue) Setter for field:int vertexAlignment
static final ValueLayout.OfInt
Layout for field:int vertexAlignment
static final long
Offset for field:int vertexAlignment
static int
vertexCount
(MemorySegment struct) Getter for field:int vertexCount
static void
vertexCount
(MemorySegment struct, int fieldValue) Setter for field:int vertexCount
static final ValueLayout.OfInt
Layout for field:int vertexCount
static final long
Offset for field:int vertexCount
-
Method Details
-
layout
The layout of this struct -
mode$layout
Layout for field:int mode
-
mode$offset
public static final long mode$offset()Offset for field:int mode
-
mode
Getter for field:int mode
-
mode
Setter for field:int mode
-
vertexCount$layout
Layout for field:int vertexCount
-
vertexCount$offset
public static final long vertexCount$offset()Offset for field:int vertexCount
-
vertexCount
Getter for field:int vertexCount
-
vertexCount
Setter for field:int vertexCount
-
vertexAlignment$layout
Layout for field:int vertexAlignment
-
vertexAlignment$offset
public static final long vertexAlignment$offset()Offset for field:int vertexAlignment
-
vertexAlignment
Getter for field:int vertexAlignment
-
vertexAlignment
Setter for field:int vertexAlignment
-
textureId$layout
Layout for field:unsigned int textureId
-
textureId$offset
public static final long textureId$offset()Offset for field:unsigned int textureId
-
textureId
Getter for field:unsigned int textureId
-
textureId
Setter for field:unsigned int textureId
-
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()}'
-