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 MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcolor(MemorySegment struct) Getter for field:Color colorstatic voidcolor(MemorySegment struct, MemorySegment fieldValue) Setter for field:Color colorstatic final GroupLayoutLayout for field:Color colorstatic final longOffset for field:Color colorstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code layout().byteSize()}'static longsizeof()The size (in bytes) of this structstatic MemorySegmenttexture(MemorySegment struct) Getter for field:Texture2D texturestatic voidtexture(MemorySegment struct, MemorySegment fieldValue) Setter for field:Texture2D texturestatic final GroupLayoutLayout for field:Texture2D texturestatic final longOffset for field:Texture2D texturestatic floatvalue(MemorySegment struct) Getter for field:float valuestatic voidvalue(MemorySegment struct, float fieldValue) Setter for field:float valuestatic final ValueLayout.OfFloatLayout for field:float valuestatic final longOffset 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 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 targetarenaand 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) Reinterpretsaddrusing targetarenaand invalid input: '{@code cleanupAction) (if any). The returned segment has size {@code elementCount * layout().byteSize()}'
-