Class Camera3D
java.lang.Object
com.raylib.jextract.Camera3D
-
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 floatfovy(MemorySegment struct) Getter for field:float fovystatic voidfovy(MemorySegment struct, float fieldValue) Setter for field:float fovystatic final ValueLayout.OfFloatLayout for field:float fovystatic final longOffset for field:float fovystatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentposition(MemorySegment struct) Getter for field:Vector3 positionstatic voidposition(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 positionstatic final GroupLayoutLayout for field:Vector3 positionstatic final longOffset for field:Vector3 positionstatic intprojection(MemorySegment struct) Getter for field:int projectionstatic voidprojection(MemorySegment struct, int fieldValue) Setter for field:int projectionstatic final ValueLayout.OfIntLayout for field:int projectionstatic final longOffset for field:int projectionstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic MemorySegmenttarget(MemorySegment struct) Getter for field:Vector3 targetstatic voidtarget(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 targetstatic final GroupLayoutLayout for field:Vector3 targetstatic final longOffset for field:Vector3 targetstatic MemorySegmentup(MemorySegment struct) Getter for field:Vector3 upstatic voidup(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 upstatic final GroupLayoutLayout for field:Vector3 upstatic final longOffset for field:Vector3 up
-
Method Details
-
layout
The layout of this struct -
position$layout
Layout for field:Vector3 position -
position$offset
public static final long position$offset()Offset for field:Vector3 position -
position
Getter for field:Vector3 position -
position
Setter for field:Vector3 position -
target$layout
Layout for field:Vector3 target -
target$offset
public static final long target$offset()Offset for field:Vector3 target -
target
Getter for field:Vector3 target -
target
Setter for field:Vector3 target -
up$layout
Layout for field:Vector3 up -
up$offset
public static final long up$offset()Offset for field:Vector3 up -
up
Getter for field:Vector3 up -
up
Setter for field:Vector3 up -
fovy$layout
Layout for field:float fovy -
fovy$offset
public static final long fovy$offset()Offset for field:float fovy -
fovy
Getter for field:float fovy -
fovy
Setter for field:float fovy -
projection$layout
Layout for field:int projection -
projection$offset
public static final long projection$offset()Offset for field:int projection -
projection
Getter for field:int projection -
projection
Setter for field:int projection -
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 targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-