Class rlRenderBatch
java.lang.Object
com.raylib.rlRenderBatch
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.rlRenderBatch
(int bufferCount, int currentBuffer, MemorySegment vertexBuffer, rlDrawCall draws, int drawCounter, float currentDepth) Construct with auto memory allocator and fields initialized as specifiedrlRenderBatch
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectrlRenderBatch
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedrlRenderBatch
(SegmentAllocator arena, int bufferCount, int currentBuffer, MemorySegment vertexBuffer, rlDrawCall draws, int drawCounter, float currentDepth) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic rlRenderBatch
allocateArray
(long elementCount) Allocate an array of rlRenderBatchstatic rlRenderBatch
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of rlRenderBatchint
Number of vertex buffers (multi-buffering support)bufferCount
(int value) Number of vertex buffers (multi-buffering support)int
Current buffer tracking in case of multi-bufferingcurrentBuffer
(int value) Current buffer tracking in case of multi-bufferingfloat
Current depth value for next drawcurrentDepth
(float value) Current depth value for next drawint
Draw calls counterdrawCounter
(int value) Draw calls counterdraws()
Draw calls array, depends on textureIddraws
(rlDrawCall value) Draw calls array, depends on textureIdboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) int
Number of vertex buffers (multi-buffering support)int
Current buffer tracking in case of multi-bufferingfloat
Current depth value for next drawint
Draw calls countergetDraws()
Draw calls array, depends on textureIdDynamic buffer(s) for vertex dataint
hashCode()
void
setBufferCount
(int value) Number of vertex buffers (multi-buffering support)void
setCurrentBuffer
(int value) Current buffer tracking in case of multi-bufferingvoid
setCurrentDepth
(float value) Current depth value for next drawvoid
setDrawCounter
(int value) Draw calls countervoid
setDraws
(rlDrawCall value) Draw calls array, depends on textureIdvoid
setVertexBuffer
(MemorySegment value) Dynamic buffer(s) for vertex dataDynamic buffer(s) for vertex datavertexBuffer
(MemorySegment value) Dynamic buffer(s) for vertex data
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
rlRenderBatch
public rlRenderBatch()Construct with auto memory allocator and fields initialized to zero. -
rlRenderBatch
Construct with your owm memory allocator and fields not initialized -
rlRenderBatch
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
rlRenderBatch
public rlRenderBatch(int bufferCount, int currentBuffer, MemorySegment vertexBuffer, rlDrawCall draws, int drawCounter, float currentDepth) Construct with auto memory allocator and fields initialized as specified- Parameters:
bufferCount
- Number of vertex buffers (multi-buffering support)currentBuffer
- Current buffer tracking in case of multi-bufferingvertexBuffer
- Dynamic buffer(s) for vertex datadraws
- Draw calls array, depends on textureIddrawCounter
- Draw calls countercurrentDepth
- Current depth value for next draw
-
rlRenderBatch
public rlRenderBatch(SegmentAllocator arena, int bufferCount, int currentBuffer, MemorySegment vertexBuffer, rlDrawCall draws, int drawCounter, float currentDepth) Construct with your own memory allocator and fields initialized as specified- Parameters:
bufferCount
- Number of vertex buffers (multi-buffering support)currentBuffer
- Current buffer tracking in case of multi-bufferingvertexBuffer
- Dynamic buffer(s) for vertex datadraws
- Draw calls array, depends on textureIddrawCounter
- Draw calls countercurrentDepth
- Current depth value for next draw
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of rlRenderBatch -
allocateArray
Allocate an array of rlRenderBatch -
getBufferCount
public int getBufferCount()Number of vertex buffers (multi-buffering support) -
setBufferCount
public void setBufferCount(int value) Number of vertex buffers (multi-buffering support) -
bufferCount
public int bufferCount()Number of vertex buffers (multi-buffering support) -
bufferCount
Number of vertex buffers (multi-buffering support) -
getCurrentBuffer
public int getCurrentBuffer()Current buffer tracking in case of multi-buffering -
setCurrentBuffer
public void setCurrentBuffer(int value) Current buffer tracking in case of multi-buffering -
currentBuffer
public int currentBuffer()Current buffer tracking in case of multi-buffering -
currentBuffer
Current buffer tracking in case of multi-buffering -
getVertexBuffer
Dynamic buffer(s) for vertex data -
setVertexBuffer
Dynamic buffer(s) for vertex data -
vertexBuffer
Dynamic buffer(s) for vertex data -
vertexBuffer
Dynamic buffer(s) for vertex data -
getDraws
Draw calls array, depends on textureId -
setDraws
Draw calls array, depends on textureId -
draws
Draw calls array, depends on textureId -
draws
Draw calls array, depends on textureId -
getDrawCounter
public int getDrawCounter()Draw calls counter -
setDrawCounter
public void setDrawCounter(int value) Draw calls counter -
drawCounter
public int drawCounter()Draw calls counter -
drawCounter
Draw calls counter -
getCurrentDepth
public float getCurrentDepth()Current depth value for next draw -
setCurrentDepth
public void setCurrentDepth(float value) Current depth value for next draw -
currentDepth
public float currentDepth()Current depth value for next draw -
currentDepth
Current depth value for next draw
-