Class Mesh

java.lang.Object
com.raylib.jextract.Mesh

public class Mesh extends Object
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 Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • 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
      
    • triangleCount$layout

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

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

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

      public static void triangleCount(MemorySegment struct, int fieldValue)
      Setter for field:
      int triangleCount
      
    • 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
      
    • texcoords2$layout

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

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

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

      public static void texcoords2(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float *texcoords2
      
    • 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
      
    • tangents$layout

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

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

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

      public static void tangents(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      float *tangents
      
    • 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 short *indices
      
    • indices$offset

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final AddressLayout boneMatrices$layout()
      Layout for field:
      Matrix *boneMatrices
      
    • boneMatrices$offset

      public static final long boneMatrices$offset()
      Offset for field:
      Matrix *boneMatrices
      
    • boneMatrices

      public static MemorySegment boneMatrices(MemorySegment struct)
      Getter for field:
      Matrix *boneMatrices
      
    • boneMatrices

      public static void boneMatrices(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Matrix *boneMatrices
      
    • boneCount$layout

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

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

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

      public static void boneCount(MemorySegment struct, int fieldValue)
      Setter for field:
      int boneCount
      
    • 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 AddressLayout vboId$layout()
      Layout for field:
      unsigned int *vboId
      
    • vboId$offset

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

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

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