Package com.raylib.jextract
Class rlVertexBuffer
java.lang.Object
com.raylib.jextract.rlVertexBuffer
struct rlVertexBuffer {
int elementCount;
float *vertices;
float *texcoords;
unsigned char *colors;
unsigned int *indices;
unsigned int vaoId;
unsigned int vboId[4];
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcolors(MemorySegment struct) Getter for field:unsigned char *colorsstatic voidcolors(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned char *colorsstatic final AddressLayoutLayout for field:unsigned char *colorsstatic final longOffset for field:unsigned char *colorsstatic intelementCount(MemorySegment struct) Getter for field:int elementCountstatic voidelementCount(MemorySegment struct, int fieldValue) Setter for field:int elementCountstatic final ValueLayout.OfIntLayout for field:int elementCountstatic final longOffset for field:int elementCountstatic MemorySegmentindices(MemorySegment struct) Getter for field:unsigned int *indicesstatic voidindices(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned int *indicesstatic final AddressLayoutLayout for field:unsigned int *indicesstatic final longOffset for field:unsigned int *indicesstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this structstatic MemorySegmenttexcoords(MemorySegment struct) Getter for field:float *texcoordsstatic voidtexcoords(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *texcoordsstatic final AddressLayoutLayout for field:float *texcoordsstatic final longOffset for field:float *texcoordsstatic intvaoId(MemorySegment struct) Getter for field:unsigned int vaoIdstatic voidvaoId(MemorySegment struct, int fieldValue) Setter for field:unsigned int vaoIdstatic final ValueLayout.OfIntLayout for field:unsigned int vaoIdstatic final longOffset for field:unsigned int vaoIdstatic MemorySegmentvboId(MemorySegment struct) Getter for field:unsigned int vboId[4]static intvboId(MemorySegment struct, long index0) Indexed getter for field:unsigned int vboId[4]static voidvboId(MemorySegment struct, long index0, int fieldValue) Indexed setter for field:unsigned int vboId[4]static voidvboId(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned int vboId[4]static long[]Dimensions for array field:unsigned int vboId[4]static final SequenceLayoutLayout for field:unsigned int vboId[4]static final longOffset for field:unsigned int vboId[4]static MemorySegmentvertices(MemorySegment struct) Getter for field:float *verticesstatic voidvertices(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *verticesstatic final AddressLayoutLayout for field:float *verticesstatic final longOffset for field:float *vertices
-
Method Details
-
layout
The layout of this struct -
elementCount$layout
Layout for field:int elementCount -
elementCount$offset
public static final long elementCount$offset()Offset for field:int elementCount -
elementCount
Getter for field:int elementCount -
elementCount
Setter for field:int elementCount -
vertices$layout
Layout for field:float *vertices -
vertices$offset
public static final long vertices$offset()Offset for field:float *vertices -
vertices
Getter for field:float *vertices -
vertices
Setter for field:float *vertices -
texcoords$layout
Layout for field:float *texcoords -
texcoords$offset
public static final long texcoords$offset()Offset for field:float *texcoords -
texcoords
Getter for field:float *texcoords -
texcoords
Setter for field:float *texcoords -
colors$layout
Layout for field:unsigned char *colors -
colors$offset
public static final long colors$offset()Offset for field:unsigned char *colors -
colors
Getter for field:unsigned char *colors -
colors
Setter for field:unsigned char *colors -
indices$layout
Layout for field:unsigned int *indices -
indices$offset
public static final long indices$offset()Offset for field:unsigned int *indices -
indices
Getter for field:unsigned int *indices -
indices
Setter for field:unsigned int *indices -
vaoId$layout
Layout for field:unsigned int vaoId -
vaoId$offset
public static final long vaoId$offset()Offset for field:unsigned int vaoId -
vaoId
Getter for field:unsigned int vaoId -
vaoId
Setter for field:unsigned int vaoId -
vboId$layout
Layout for field:unsigned int vboId[4] -
vboId$offset
public static final long vboId$offset()Offset for field:unsigned int vboId[4] -
vboId
Getter for field:unsigned int vboId[4] -
vboId
Setter for field:unsigned int vboId[4] -
vboId$dimensions
public static long[] vboId$dimensions()Dimensions for array field:unsigned int vboId[4] -
vboId
Indexed getter for field:unsigned int vboId[4] -
vboId
Indexed setter for field:unsigned int vboId[4] -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}' -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-