Package com.raylib.jextract
Class Material
java.lang.Object
com.raylib.jextract.Material
struct Material {
Shader shader;
MaterialMap *maps;
float params[4];
}
-
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 final GroupLayout
layout()
The layout of this structstatic MemorySegment
maps
(MemorySegment struct) Getter for field:MaterialMap *maps
static void
maps
(MemorySegment struct, MemorySegment fieldValue) Setter for field:MaterialMap *maps
static final AddressLayout
Layout for field:MaterialMap *maps
static final long
Offset for field:MaterialMap *maps
static MemorySegment
params
(MemorySegment struct) Getter for field:float params[4]
static float
params
(MemorySegment struct, long index0) Indexed getter for field:float params[4]
static void
params
(MemorySegment struct, long index0, float fieldValue) Indexed setter for field:float params[4]
static void
params
(MemorySegment struct, MemorySegment fieldValue) Setter for field:float params[4]
static long[]
Dimensions for array field:float params[4]
static final SequenceLayout
Layout for field:float params[4]
static final long
Offset for field:float params[4]
static MemorySegment
reinterpret
(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegment
reinterpret
(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static MemorySegment
shader
(MemorySegment struct) Getter for field:Shader shader
static void
shader
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Shader shader
static final GroupLayout
Layout for field:Shader shader
static final long
Offset for field:Shader shader
static long
sizeof()
The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
shader$layout
Layout for field:Shader shader
-
shader$offset
public static final long shader$offset()Offset for field:Shader shader
-
shader
Getter for field:Shader shader
-
shader
Setter for field:Shader shader
-
maps$layout
Layout for field:MaterialMap *maps
-
maps$offset
public static final long maps$offset()Offset for field:MaterialMap *maps
-
maps
Getter for field:MaterialMap *maps
-
maps
Setter for field:MaterialMap *maps
-
params$layout
Layout for field:float params[4]
-
params$offset
public static final long params$offset()Offset for field:float params[4]
-
params
Getter for field:float params[4]
-
params
Setter for field:float params[4]
-
params$dimensions
public static long[] params$dimensions()Dimensions for array field:float params[4]
-
params
Indexed getter for field:float params[4]
-
params
Indexed setter for field:float params[4]
-
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
and 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) Reinterpretsaddr
using targetarena
and invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-