Class Mesh
java.lang.Object
com.raylib.jextract.Mesh
struct Mesh {
int vertexCount;
int triangleCount;
float *vertices;
float *texcoords;
float *texcoords2;
float *normals;
float *tangents;
unsigned char *colors;
unsigned short *indices;
float *animVertices;
float *animNormals;
unsigned char *boneIds;
float *boneWeights;
Matrix *boneMatrices;
int boneCount;
unsigned int vaoId;
unsigned int *vboId;
}
-
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 MemorySegmentanimNormals(MemorySegment struct) Getter for field:float *animNormalsstatic voidanimNormals(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *animNormalsstatic final AddressLayoutLayout for field:float *animNormalsstatic final longOffset for field:float *animNormalsstatic MemorySegmentanimVertices(MemorySegment struct) Getter for field:float *animVerticesstatic voidanimVertices(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *animVerticesstatic final AddressLayoutLayout for field:float *animVerticesstatic final longOffset for field:float *animVerticesstatic MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static intboneCount(MemorySegment struct) Getter for field:int boneCountstatic voidboneCount(MemorySegment struct, int fieldValue) Setter for field:int boneCountstatic final ValueLayout.OfIntLayout for field:int boneCountstatic final longOffset for field:int boneCountstatic MemorySegmentboneIds(MemorySegment struct) Getter for field:unsigned char *boneIdsstatic voidboneIds(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned char *boneIdsstatic final AddressLayoutLayout for field:unsigned char *boneIdsstatic final longOffset for field:unsigned char *boneIdsstatic MemorySegmentboneMatrices(MemorySegment struct) Getter for field:Matrix *boneMatricesstatic voidboneMatrices(MemorySegment struct, MemorySegment fieldValue) Setter for field:Matrix *boneMatricesstatic final AddressLayoutLayout for field:Matrix *boneMatricesstatic final longOffset for field:Matrix *boneMatricesstatic MemorySegmentboneWeights(MemorySegment struct) Getter for field:float *boneWeightsstatic voidboneWeights(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *boneWeightsstatic final AddressLayoutLayout for field:float *boneWeightsstatic final longOffset for field:float *boneWeightsstatic 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 MemorySegmentindices(MemorySegment struct) Getter for field:unsigned short *indicesstatic voidindices(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned short *indicesstatic final AddressLayoutLayout for field:unsigned short *indicesstatic final longOffset for field:unsigned short *indicesstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentnormals(MemorySegment struct) Getter for field:float *normalsstatic voidnormals(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *normalsstatic final AddressLayoutLayout for field:float *normalsstatic final longOffset for field:float *normalsstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic MemorySegmenttangents(MemorySegment struct) Getter for field:float *tangentsstatic voidtangents(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *tangentsstatic final AddressLayoutLayout for field:float *tangentsstatic final longOffset for field:float *tangentsstatic 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 MemorySegmenttexcoords2(MemorySegment struct) Getter for field:float *texcoords2static voidtexcoords2(MemorySegment struct, MemorySegment fieldValue) Setter for field:float *texcoords2static final AddressLayoutLayout for field:float *texcoords2static final longOffset for field:float *texcoords2static inttriangleCount(MemorySegment struct) Getter for field:int triangleCountstatic voidtriangleCount(MemorySegment struct, int fieldValue) Setter for field:int triangleCountstatic final ValueLayout.OfIntLayout for field:int triangleCountstatic final longOffset for field:int triangleCountstatic 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 *vboIdstatic voidvboId(MemorySegment struct, MemorySegment fieldValue) Setter for field:unsigned int *vboIdstatic final AddressLayoutLayout for field:unsigned int *vboIdstatic final longOffset for field:unsigned int *vboIdstatic intvertexCount(MemorySegment struct) Getter for field:int vertexCountstatic voidvertexCount(MemorySegment struct, int fieldValue) Setter for field:int vertexCountstatic final ValueLayout.OfIntLayout for field:int vertexCountstatic final longOffset for field:int vertexCountstatic 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 -
vertexCount$layout
Layout for field:int vertexCount -
vertexCount$offset
public static final long vertexCount$offset()Offset for field:int vertexCount -
vertexCount
Getter for field:int vertexCount -
vertexCount
Setter for field:int vertexCount -
triangleCount$layout
Layout for field:int triangleCount -
triangleCount$offset
public static final long triangleCount$offset()Offset for field:int triangleCount -
triangleCount
Getter for field:int triangleCount -
triangleCount
Setter for field:int triangleCount -
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 -
texcoords2$layout
Layout for field:float *texcoords2 -
texcoords2$offset
public static final long texcoords2$offset()Offset for field:float *texcoords2 -
texcoords2
Getter for field:float *texcoords2 -
texcoords2
Setter for field:float *texcoords2 -
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 -
tangents$layout
Layout for field:float *tangents -
tangents$offset
public static final long tangents$offset()Offset for field:float *tangents -
tangents
Getter for field:float *tangents -
tangents
Setter for field:float *tangents -
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 short *indices -
indices$offset
public static final long indices$offset()Offset for field:unsigned short *indices -
indices
Getter for field:unsigned short *indices -
indices
Setter for field:unsigned short *indices -
animVertices$layout
Layout for field:float *animVertices -
animVertices$offset
public static final long animVertices$offset()Offset for field:float *animVertices -
animVertices
Getter for field:float *animVertices -
animVertices
Setter for field:float *animVertices -
animNormals$layout
Layout for field:float *animNormals -
animNormals$offset
public static final long animNormals$offset()Offset for field:float *animNormals -
animNormals
Getter for field:float *animNormals -
animNormals
Setter for field:float *animNormals -
boneIds$layout
Layout for field:unsigned char *boneIds -
boneIds$offset
public static final long boneIds$offset()Offset for field:unsigned char *boneIds -
boneIds
Getter for field:unsigned char *boneIds -
boneIds
Setter for field:unsigned char *boneIds -
boneWeights$layout
Layout for field:float *boneWeights -
boneWeights$offset
public static final long boneWeights$offset()Offset for field:float *boneWeights -
boneWeights
Getter for field:float *boneWeights -
boneWeights
Setter for field:float *boneWeights -
boneMatrices$layout
Layout for field:Matrix *boneMatrices -
boneMatrices$offset
public static final long boneMatrices$offset()Offset for field:Matrix *boneMatrices -
boneMatrices
Getter for field:Matrix *boneMatrices -
boneMatrices
Setter for field:Matrix *boneMatrices -
boneCount$layout
Layout for field:int boneCount -
boneCount$offset
public static final long boneCount$offset()Offset for field:int boneCount -
boneCount
Getter for field:int boneCount -
boneCount
Setter for field:int boneCount -
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 -
vboId$offset
public static final long vboId$offset()Offset for field:unsigned int *vboId -
vboId
Getter for field:unsigned int *vboId -
vboId
Setter for field:unsigned int *vboId -
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 targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-