Package com.raylib.jextract
Class rlRenderBatch
java.lang.Object
com.raylib.jextract.rlRenderBatch
struct rlRenderBatch {
int bufferCount;
int currentBuffer;
rlVertexBuffer *vertexBuffer;
rlDrawCall *draws;
int drawCounter;
float currentDepth;
}
-
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 intbufferCount(MemorySegment struct) Getter for field:int bufferCountstatic voidbufferCount(MemorySegment struct, int fieldValue) Setter for field:int bufferCountstatic final ValueLayout.OfIntLayout for field:int bufferCountstatic final longOffset for field:int bufferCountstatic intcurrentBuffer(MemorySegment struct) Getter for field:int currentBufferstatic voidcurrentBuffer(MemorySegment struct, int fieldValue) Setter for field:int currentBufferstatic final ValueLayout.OfIntLayout for field:int currentBufferstatic final longOffset for field:int currentBufferstatic floatcurrentDepth(MemorySegment struct) Getter for field:float currentDepthstatic voidcurrentDepth(MemorySegment struct, float fieldValue) Setter for field:float currentDepthstatic final ValueLayout.OfFloatLayout for field:float currentDepthstatic final longOffset for field:float currentDepthstatic intdrawCounter(MemorySegment struct) Getter for field:int drawCounterstatic voiddrawCounter(MemorySegment struct, int fieldValue) Setter for field:int drawCounterstatic final ValueLayout.OfIntLayout for field:int drawCounterstatic final longOffset for field:int drawCounterstatic MemorySegmentdraws(MemorySegment struct) Getter for field:rlDrawCall *drawsstatic voiddraws(MemorySegment struct, MemorySegment fieldValue) Setter for field:rlDrawCall *drawsstatic final AddressLayoutLayout for field:rlDrawCall *drawsstatic final longOffset for field:rlDrawCall *drawsstatic final GroupLayoutlayout()The layout of this structstatic 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 MemorySegmentvertexBuffer(MemorySegment struct) Getter for field:rlVertexBuffer *vertexBufferstatic voidvertexBuffer(MemorySegment struct, MemorySegment fieldValue) Setter for field:rlVertexBuffer *vertexBufferstatic final AddressLayoutLayout for field:rlVertexBuffer *vertexBufferstatic final longOffset for field:rlVertexBuffer *vertexBuffer
-
Method Details
-
layout
The layout of this struct -
bufferCount$layout
Layout for field:int bufferCount -
bufferCount$offset
public static final long bufferCount$offset()Offset for field:int bufferCount -
bufferCount
Getter for field:int bufferCount -
bufferCount
Setter for field:int bufferCount -
currentBuffer$layout
Layout for field:int currentBuffer -
currentBuffer$offset
public static final long currentBuffer$offset()Offset for field:int currentBuffer -
currentBuffer
Getter for field:int currentBuffer -
currentBuffer
Setter for field:int currentBuffer -
vertexBuffer$layout
Layout for field:rlVertexBuffer *vertexBuffer -
vertexBuffer$offset
public static final long vertexBuffer$offset()Offset for field:rlVertexBuffer *vertexBuffer -
vertexBuffer
Getter for field:rlVertexBuffer *vertexBuffer -
vertexBuffer
Setter for field:rlVertexBuffer *vertexBuffer -
draws$layout
Layout for field:rlDrawCall *draws -
draws$offset
public static final long draws$offset()Offset for field:rlDrawCall *draws -
draws
Getter for field:rlDrawCall *draws -
draws
Setter for field:rlDrawCall *draws -
drawCounter$layout
Layout for field:int drawCounter -
drawCounter$offset
public static final long drawCounter$offset()Offset for field:int drawCounter -
drawCounter
Getter for field:int drawCounter -
drawCounter
Setter for field:int drawCounter -
currentDepth$layout
Layout for field:float currentDepth -
currentDepth$offset
public static final long currentDepth$offset()Offset for field:float currentDepth -
currentDepth
Getter for field:float currentDepth -
currentDepth
Setter for field:float currentDepth -
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()}'
-