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 equalfloat
fovy()
Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicfovy
(float value) Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicgetArrayElement
(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()
position()
Camera positionCamera positionint
Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHICprojection
(int value) Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHICvoid
setFovy
(float value) Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographicvoid
setPosition
(Vector3 value) Camera positionvoid
setProjection
(int value) Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHICvoid
Camera target it looks-atvoid
Camera up vector (rotation over its axis)target()
Camera target it looks-atCamera target it looks-atup()
Camera up vector (rotation over its axis)Camera 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
Camera position -
position
Camera position -
position
-
getTarget
Camera target it looks-at -
setTarget
Camera target it looks-at -
target
Camera target it looks-at -
target
-
getUp
Camera up vector (rotation over its axis) -
setUp
Camera up vector (rotation over its axis) -
up
Camera up vector (rotation over its axis) -
up
-
getFovy
public float getFovy()Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic -
setFovy
public void setFovy(float value) Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic -
fovy
public float fovy()Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic -
fovy
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
public void setProjection(int value) Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC -
projection
public int projection()Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC -
projection
Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
-