Class rlVertexBuffer
java.lang.Object
com.raylib.jextract.rlVertexBuffer
struct rlVertexBuffer {
int elementCount;
float *vertices;
float *texcoords;
float *normals;
unsigned char *colors;
unsigned int *indices;
unsigned int vaoId;
unsigned int vboId[5];
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
allocate
(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()
usingallocator
static MemorySegment
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCount
usingallocator
.static MemorySegment
asSlice
(MemorySegment array, long index) Obtains a slice ofarrayParam
which selects the array element atindex
.static MemorySegment
colors
(MemorySegment struct) Getter for field:unsigned char *colors
static void
colors
(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned char *colors
static final AddressLayout
Layout for field:unsigned char *colors
static final long
Offset for field:unsigned char *colors
static int
elementCount
(MemorySegment struct) Getter for field:int elementCount
static void
elementCount
(MemorySegment struct, int fieldValue) Setter for field:int elementCount
static final ValueLayout.OfInt
Layout for field:int elementCount
static final long
Offset for field:int elementCount
static MemorySegment
indices
(MemorySegment struct) Getter for field:unsigned int *indices
static void
indices
(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned int *indices
static final AddressLayout
Layout for field:unsigned int *indices
static final long
Offset for field:unsigned int *indices
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
normals
(MemorySegment struct) Getter for field:float *normals
static void
normals
(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *normals
static final AddressLayout
Layout for field:float *normals
static final long
Offset for field:float *normals
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any).static long
sizeof()
The size (in bytes) of this structstatic MemorySegment
texcoords
(MemorySegment struct) Getter for field:float *texcoords
static void
texcoords
(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *texcoords
static final AddressLayout
Layout for field:float *texcoords
static final long
Offset for field:float *texcoords
static int
vaoId
(MemorySegment struct) Getter for field:unsigned int vaoId
static void
vaoId
(MemorySegment struct, int fieldValue) Setter for field:unsigned int vaoId
static final ValueLayout.OfInt
Layout for field:unsigned int vaoId
static final long
Offset for field:unsigned int vaoId
static MemorySegment
vboId
(MemorySegment struct) Getter for field:unsigned int vboId[5]
static int
vboId
(MemorySegment struct, long index0) Indexed getter for field:unsigned int vboId[5]
static void
vboId
(MemorySegment struct, long index0, int fieldValue) Indexed setter for field:unsigned int vboId[5]
static void
vboId
(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned int vboId[5]
static long[]
Dimensions for array field:unsigned int vboId[5]
static final SequenceLayout
Layout for field:unsigned int vboId[5]
static final long
Offset for field:unsigned int vboId[5]
static MemorySegment
vertices
(MemorySegment struct) Getter for field:float *vertices
static void
vertices
(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *vertices
static final AddressLayout
Layout for field:float *vertices
static final long
Offset 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
-
normals$layout
Layout for field:float *normals
-
normals$offset
public static final long normals$offset()Offset for field:float *normals
-
normals
Getter for field:float *normals
-
normals
Setter for field:float *normals
-
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[5]
-
vboId$offset
public static final long vboId$offset()Offset for field:unsigned int vboId[5]
-
vboId
Getter for field:unsigned int vboId[5]
-
vboId
Setter for field:unsigned int vboId[5]
-
vboId$dimensions
public static long[] vboId$dimensions()Dimensions for array field:unsigned int vboId[5]
-
vboId
Indexed getter for field:unsigned int vboId[5]
-
vboId
Indexed setter for field:unsigned int vboId[5]
-
asSlice
Obtains a slice ofarrayParam
which 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 sizeelementCount
usingallocator
. The returned segment has sizeelementCount * layout().byteSize()
. -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizelayout().byteSize()
-
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
andcleanupAction
(if any). The returned segment has sizeelementCount * layout().byteSize()
-