Package com.raylib.jextract
Class MaterialMap
java.lang.Object
com.raylib.jextract.MaterialMap
struct MaterialMap {
Texture2D texture;
Color color;
float value;
}
-
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
color
(MemorySegment struct) Getter for field:Color color
static void
color
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Color color
static final GroupLayout
Layout for field:Color color
static final long
Offset for field:Color color
static final GroupLayout
layout()
The layout of this structstatic 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 long
sizeof()
The size (in bytes) of this structstatic MemorySegment
texture
(MemorySegment struct) Getter for field:Texture2D texture
static void
texture
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Texture2D texture
static final GroupLayout
Layout for field:Texture2D texture
static final long
Offset for field:Texture2D texture
static float
value
(MemorySegment struct) Getter for field:float value
static void
value
(MemorySegment struct, float fieldValue) Setter for field:float value
static final ValueLayout.OfFloat
Layout for field:float value
static final long
Offset for field:float value
-
Method Details
-
layout
The layout of this struct -
texture$layout
Layout for field:Texture2D texture
-
texture$offset
public static final long texture$offset()Offset for field:Texture2D texture
-
texture
Getter for field:Texture2D texture
-
texture
Setter for field:Texture2D texture
-
color$layout
Layout for field:Color color
-
color$offset
public static final long color$offset()Offset for field:Color color
-
color
Getter for field:Color color
-
color
Setter for field:Color color
-
value$layout
Layout for field:float value
-
value$offset
public static final long value$offset()Offset for field:float value
-
value
Getter for field:float value
-
value
Setter for field:float value
-
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()}'
-