Class rlRenderBatch

java.lang.Object
com.raylib.rlRenderBatch

public class rlRenderBatch extends Object
rlRenderBatch type
  • Field Details

    • memorySegment

      public final MemorySegment 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

      public rlRenderBatch(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • rlRenderBatch

      public rlRenderBatch(MemorySegment memorySegment)
      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-buffering
      vertexBuffer - Dynamic buffer(s) for vertex data
      draws - Draw calls array, depends on textureId
      drawCounter - Draw calls counter
      currentDepth - 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-buffering
      vertexBuffer - Dynamic buffer(s) for vertex data
      draws - Draw calls array, depends on textureId
      drawCounter - Draw calls counter
      currentDepth - Current depth value for next draw
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public rlRenderBatch getArrayElement(int index)
    • allocateArray

      public static rlRenderBatch allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of rlRenderBatch
    • allocateArray

      public static rlRenderBatch allocateArray(long elementCount)
      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

      public rlRenderBatch bufferCount(int value)
      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

      public rlRenderBatch currentBuffer(int value)
      Current buffer tracking in case of multi-buffering
    • getVertexBuffer

      public MemorySegment getVertexBuffer()
      Dynamic buffer(s) for vertex data
    • setVertexBuffer

      public void setVertexBuffer(MemorySegment value)
      Dynamic buffer(s) for vertex data
    • vertexBuffer

      public MemorySegment vertexBuffer()
      Dynamic buffer(s) for vertex data
    • vertexBuffer

      public rlRenderBatch vertexBuffer(MemorySegment value)
      Dynamic buffer(s) for vertex data
    • getDraws

      public rlDrawCall getDraws()
      Draw calls array, depends on textureId
    • setDraws

      public void setDraws(rlDrawCall value)
      Draw calls array, depends on textureId
    • draws

      public rlDrawCall draws()
      Draw calls array, depends on textureId
    • draws

      public rlRenderBatch draws(rlDrawCall value)
      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

      public rlRenderBatch drawCounter(int value)
      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

      public rlRenderBatch currentDepth(float value)
      Current depth value for next draw