Class rlVertexBuffer

java.lang.Object
com.raylib.jextract.rlVertexBuffer

public class rlVertexBuffer extends Object
struct rlVertexBuffer {
    int elementCount;
    float *vertices;
    float *texcoords;
    float *normals;
    unsigned char *colors;
    unsigned int *indices;
    unsigned int vaoId;
    unsigned int vboId[5];
}
  • Method Details

    • layout

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

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

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

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

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

      public static final AddressLayout vertices$layout()
      Layout for field:
      float *vertices
      
    • vertices$offset

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

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

      public static void vertices(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float *vertices
      
    • texcoords$layout

      public static final AddressLayout texcoords$layout()
      Layout for field:
      float *texcoords
      
    • texcoords$offset

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

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

      public static void texcoords(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float *texcoords
      
    • normals$layout

      public static final AddressLayout normals$layout()
      Layout for field:
      float *normals
      
    • normals$offset

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

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

      public static void normals(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float *normals
      
    • colors$layout

      public static final AddressLayout colors$layout()
      Layout for field:
      unsigned char *colors
      
    • colors$offset

      public static final long colors$offset()
      Offset for field:
      unsigned char *colors
      
    • colors

      public static MemorySegment colors(MemorySegment struct)
      Getter for field:
      unsigned char *colors
      
    • colors

      public static void colors(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      unsigned char *colors
      
    • indices$layout

      public static final AddressLayout indices$layout()
      Layout for field:
      unsigned int *indices
      
    • indices$offset

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

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

      public static void indices(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      unsigned int *indices
      
    • vaoId$layout

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

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

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

      public static void vaoId(MemorySegment struct, int fieldValue)
      Setter for field:
      unsigned int vaoId
      
    • vboId$layout

      public static final SequenceLayout vboId$layout()
      Layout for field:
      unsigned int vboId[5]
      
    • vboId$offset

      public static final long vboId$offset()
      Offset for field:
      unsigned int vboId[5]
      
    • vboId

      public static MemorySegment vboId(MemorySegment struct)
      Getter for field:
      unsigned int vboId[5]
      
    • vboId

      public static void vboId(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      unsigned int vboId[5]
      
    • vboId$dimensions

      public static long[] vboId$dimensions()
      Dimensions for array field:
      unsigned int vboId[5]
      
    • vboId

      public static int vboId(MemorySegment struct, long index0)
      Indexed getter for field:
      unsigned int vboId[5]
      
    • vboId

      public static void vboId(MemorySegment struct, long index0, int fieldValue)
      Indexed setter for field:
      unsigned int vboId[5]
      
    • 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()