Class Model

java.lang.Object
com.raylib.jextract.Model

public class Model extends Object
struct Model {
    Matrix transform;
    int meshCount;
    int materialCount;
    Mesh *meshes;
    Material *materials;
    int *meshMaterial;
    int boneCount;
    BoneInfo *bones;
    Transform *bindPose;
}
  • Method Details

    • layout

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

      public static final GroupLayout transform$layout()
      Layout for field:
      Matrix transform
      
    • transform$offset

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

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

      public static void transform(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Matrix transform
      
    • meshCount$layout

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

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

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

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

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

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

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

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

      public static final AddressLayout meshes$layout()
      Layout for field:
      Mesh *meshes
      
    • meshes$offset

      public static final long meshes$offset()
      Offset for field:
      Mesh *meshes
      
    • meshes

      public static MemorySegment meshes(MemorySegment struct)
      Getter for field:
      Mesh *meshes
      
    • meshes

      public static void meshes(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Mesh *meshes
      
    • materials$layout

      public static final AddressLayout materials$layout()
      Layout for field:
      Material *materials
      
    • materials$offset

      public static final long materials$offset()
      Offset for field:
      Material *materials
      
    • materials

      public static MemorySegment materials(MemorySegment struct)
      Getter for field:
      Material *materials
      
    • materials

      public static void materials(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      Material *materials
      
    • meshMaterial$layout

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

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

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

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

      public static final AddressLayout bones$layout()
      Layout for field:
      BoneInfo *bones
      
    • bones$offset

      public static final long bones$offset()
      Offset for field:
      BoneInfo *bones
      
    • bones

      public static MemorySegment bones(MemorySegment struct)
      Getter for field:
      BoneInfo *bones
      
    • bones

      public static void bones(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      BoneInfo *bones
      
    • bindPose$layout

      public static final AddressLayout bindPose$layout()
      Layout for field:
      Transform *bindPose
      
    • bindPose$offset

      public static final long bindPose$offset()
      Offset for field:
      Transform *bindPose
      
    • bindPose

      public static MemorySegment bindPose(MemorySegment struct)
      Getter for field:
      Transform *bindPose
      
    • bindPose

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