Package com.raylib.jextract
Class RenderTexture
java.lang.Object
com.raylib.jextract.RenderTexture
- Direct Known Subclasses:
RenderTexture2D
struct RenderTexture {
unsigned int id;
Texture texture;
Texture depth;
}
-
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 MemorySegmentdepth(MemorySegment struct) Getter for field:Texture depthstatic voiddepth(MemorySegment struct, MemorySegment fieldValue) Setter for field:Texture depthstatic final GroupLayoutLayout for field:Texture depthstatic final longOffset for field:Texture depthstatic intid(MemorySegment struct) Getter for field:unsigned int idstatic voidid(MemorySegment struct, int fieldValue) Setter for field:unsigned int idstatic final ValueLayout.OfIntLayout for field:unsigned int idstatic final longOffset for field:unsigned int idstatic 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:Texture texturestatic voidtexture(MemorySegment struct, MemorySegment fieldValue) Setter for field:Texture texturestatic final GroupLayoutLayout for field:Texture texturestatic final longOffset for field:Texture texture
-
Method Details
-
layout
The layout of this struct -
id$layout
Layout for field:unsigned int id -
id$offset
public static final long id$offset()Offset for field:unsigned int id -
id
Getter for field:unsigned int id -
id
Setter for field:unsigned int id -
texture$layout
Layout for field:Texture texture -
texture$offset
public static final long texture$offset()Offset for field:Texture texture -
texture
Getter for field:Texture texture -
texture
Setter for field:Texture texture -
depth$layout
Layout for field:Texture depth -
depth$offset
public static final long depth$offset()Offset for field:Texture depth -
depth
Getter for field:Texture depth -
depth
Setter for field:Texture depth -
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()}'
-