Package com.raylib.jextract
Class Camera3D
java.lang.Object
com.raylib.jextract.Camera3D
-
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 float
fovy
(MemorySegment struct) Getter for field:float fovy
static void
fovy
(MemorySegment struct, float fieldValue) Setter for field:float fovy
static final ValueLayout.OfFloat
Layout for field:float fovy
static final long
Offset for field:float fovy
static final GroupLayout
layout()
The layout of this structstatic MemorySegment
position
(MemorySegment struct) Getter for field:Vector3 position
static void
position
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 position
static final GroupLayout
Layout for field:Vector3 position
static final long
Offset for field:Vector3 position
static int
projection
(MemorySegment struct) Getter for field:int projection
static void
projection
(MemorySegment struct, int fieldValue) Setter for field:int projection
static final ValueLayout.OfInt
Layout for field:int projection
static final long
Offset for field:int projection
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 long
sizeof()
The size (in bytes) of this structstatic MemorySegment
target
(MemorySegment struct) Getter for field:Vector3 target
static void
target
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 target
static final GroupLayout
Layout for field:Vector3 target
static final long
Offset for field:Vector3 target
static MemorySegment
up
(MemorySegment struct) Getter for field:Vector3 up
static void
up
(MemorySegment struct, MemorySegment fieldValue) Setter for field:Vector3 up
static final GroupLayout
Layout for field:Vector3 up
static final long
Offset 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 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()}'
-