Class rlDrawCall

java.lang.Object
com.raylib.jextract.rlDrawCall

public class rlDrawCall extends Object
struct rlDrawCall {
    int mode;
    int vertexCount;
    int vertexAlignment;
    unsigned int textureId;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void textureId(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int textureId
      
    • 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()