Package com.raylib
Class Camera3D
java.lang.Object
com.raylib.Camera3D
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionCamera3D()
Construct with auto memory allocator and fields initialized to zero.Construct with auto memory allocator and fields initialized as specifiedCamera3D
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectCamera3D
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedCamera3D
(SegmentAllocator arena, Vector3 position, Vector3 target, Vector3 up, float fovy, int projection) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Camera3D
allocateArray
(long elementCount) Allocate an array of Camera3Dstatic Camera3D
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Camera3Dboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) float
getFovy()
Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicCamera positionint
Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHICCamera target it looks-atgetUp()
Camera up vector (rotation over its axis)int
hashCode()
setFovy
(float value) Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicsetPosition
(Vector3 value) Camera positionsetProjection
(int value) Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHICCamera target it looks-atCamera up vector (rotation over its axis)
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
Camera3D
public Camera3D()Construct with auto memory allocator and fields initialized to zero. -
Camera3D
Construct with your owm memory allocator and fields not initialized -
Camera3D
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Camera3D
Construct with auto memory allocator and fields initialized as specified- Parameters:
position
- Camera positiontarget
- Camera target it looks-atup
- Camera up vector (rotation over its axis)fovy
- Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicprojection
- Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
-
Camera3D
public Camera3D(SegmentAllocator arena, Vector3 position, Vector3 target, Vector3 up, float fovy, int projection) Construct with your own memory allocator and fields initialized as specified- Parameters:
position
- Camera positiontarget
- Camera target it looks-atup
- Camera up vector (rotation over its axis)fovy
- Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicprojection
- Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Camera3D -
allocateArray
Allocate an array of Camera3D -
getPosition
Camera position -
setPosition
-
getTarget
Camera target it looks-at -
setTarget
-
getUp
Camera up vector (rotation over its axis) -
setUp
-
getFovy
public float getFovy()Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic -
setFovy
Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic -
getProjection
public int getProjection()Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC -
setProjection
Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
-