Class rlRenderBatch
java.lang.Object
com.raylib.rlRenderBatch
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe 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 rlRenderBatchallocateArray(long elementCount) Allocate an array of rlRenderBatchstatic rlRenderBatchallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of rlRenderBatchintNumber of vertex buffers (multi-buffering support)bufferCount(int value) Number of vertex buffers (multi-buffering support)intCurrent buffer tracking in case of multi-bufferingcurrentBuffer(int value) Current buffer tracking in case of multi-bufferingfloatCurrent depth value for next drawcurrentDepth(float value) Current depth value for next drawintDraw calls counterdrawCounter(int value) Draw calls counterdraws()Draw calls array, depends on textureIddraws(rlDrawCall value) Draw calls array, depends on textureIdbooleanEquality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement(int index) intNumber of vertex buffers (multi-buffering support)intCurrent buffer tracking in case of multi-bufferingfloatCurrent depth value for next drawintDraw calls countergetDraws()Draw calls array, depends on textureIdDynamic buffer(s) for vertex datainthashCode()voidsetBufferCount(int value) Number of vertex buffers (multi-buffering support)voidsetCurrentBuffer(int value) Current buffer tracking in case of multi-bufferingvoidsetCurrentDepth(float value) Current depth value for next drawvoidsetDrawCounter(int value) Draw calls countervoidsetDraws(rlDrawCall value) Draw calls array, depends on textureIdvoidsetVertexBuffer(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
-