Class rlRenderBatch

java.lang.Object
com.raylib.jextract.rlRenderBatch

public class rlRenderBatch extends Object
struct rlRenderBatch {
    int bufferCount;
    int currentBuffer;
    rlVertexBuffer *vertexBuffer;
    rlDrawCall *draws;
    int drawCounter;
    float currentDepth;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • bufferCount$layout

      public static final ValueLayout.OfInt bufferCount$layout()
      Layout for field:
      int bufferCount
      
    • bufferCount$offset

      public static final long bufferCount$offset()
      Offset for field:
      int bufferCount
      
    • bufferCount

      public static int bufferCount(MemorySegment struct)
      Getter for field:
      int bufferCount
      
    • bufferCount

      public static void bufferCount(MemorySegment struct, int fieldValue)
      Setter for field:
      int bufferCount
      
    • currentBuffer$layout

      public static final ValueLayout.OfInt currentBuffer$layout()
      Layout for field:
      int currentBuffer
      
    • currentBuffer$offset

      public static final long currentBuffer$offset()
      Offset for field:
      int currentBuffer
      
    • currentBuffer

      public static int currentBuffer(MemorySegment struct)
      Getter for field:
      int currentBuffer
      
    • currentBuffer

      public static void currentBuffer(MemorySegment struct, int fieldValue)
      Setter for field:
      int currentBuffer
      
    • vertexBuffer$layout

      public static final AddressLayout vertexBuffer$layout()
      Layout for field:
      rlVertexBuffer *vertexBuffer
      
    • vertexBuffer$offset

      public static final long vertexBuffer$offset()
      Offset for field:
      rlVertexBuffer *vertexBuffer
      
    • vertexBuffer

      public static MemorySegment vertexBuffer(MemorySegment struct)
      Getter for field:
      rlVertexBuffer *vertexBuffer
      
    • vertexBuffer

      public static void vertexBuffer(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      rlVertexBuffer *vertexBuffer
      
    • draws$layout

      public static final AddressLayout draws$layout()
      Layout for field:
      rlDrawCall *draws
      
    • draws$offset

      public static final long draws$offset()
      Offset for field:
      rlDrawCall *draws
      
    • draws

      public static MemorySegment draws(MemorySegment struct)
      Getter for field:
      rlDrawCall *draws
      
    • draws

      public static void draws(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      rlDrawCall *draws
      
    • drawCounter$layout

      public static final ValueLayout.OfInt drawCounter$layout()
      Layout for field:
      int drawCounter
      
    • drawCounter$offset

      public static final long drawCounter$offset()
      Offset for field:
      int drawCounter
      
    • drawCounter

      public static int drawCounter(MemorySegment struct)
      Getter for field:
      int drawCounter
      
    • drawCounter

      public static void drawCounter(MemorySegment struct, int fieldValue)
      Setter for field:
      int drawCounter
      
    • currentDepth$layout

      public static final ValueLayout.OfFloat currentDepth$layout()
      Layout for field:
      float currentDepth
      
    • currentDepth$offset

      public static final long currentDepth$offset()
      Offset for field:
      float currentDepth
      
    • currentDepth

      public static float currentDepth(MemorySegment struct)
      Getter for field:
      float currentDepth
      
    • currentDepth

      public static void currentDepth(MemorySegment struct, float fieldValue)
      Setter for field:
      float currentDepth
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()