Package com.raylib
Class VrStereoConfig
java.lang.Object
com.raylib.VrStereoConfig
VrStereoConfig, VR stereo rendering configuration for simulator
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.VrStereoConfig
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectVrStereoConfig
(MemorySegment projection, MemorySegment viewOffset, MemorySegment leftLensCenter, MemorySegment rightLensCenter, MemorySegment leftScreenCenter, MemorySegment rightScreenCenter, MemorySegment scale, MemorySegment scaleIn) Construct with auto memory allocator and fields initialized as specifiedVrStereoConfig
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedVrStereoConfig
(SegmentAllocator arena, MemorySegment projection, MemorySegment viewOffset, MemorySegment leftLensCenter, MemorySegment rightLensCenter, MemorySegment leftScreenCenter, MemorySegment rightScreenCenter, MemorySegment scale, MemorySegment scaleIn) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic VrStereoConfig
allocateArray
(long elementCount) Allocate an array of VrStereoConfigstatic VrStereoConfig
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of VrStereoConfigboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) VR left lens centerVR left screen centerVR projection matrices (per eye)VR right lens centerVR right screen centergetScale()
VR distortion scaleVR distortion scale inVR view offset matrices (per eye)int
hashCode()
setLeftLensCenter
(MemorySegment value) VR left lens centersetLeftScreenCenter
(MemorySegment value) VR left screen centersetProjection
(MemorySegment value) VR projection matrices (per eye)setRightLensCenter
(MemorySegment value) VR right lens centerVR right screen centersetScale
(MemorySegment value) VR distortion scalesetScaleIn
(MemorySegment value) VR distortion scale insetViewOffset
(MemorySegment value) VR view offset matrices (per eye)
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
VrStereoConfig
public VrStereoConfig()Construct with auto memory allocator and fields initialized to zero. -
VrStereoConfig
Construct with your owm memory allocator and fields not initialized -
VrStereoConfig
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
VrStereoConfig
public VrStereoConfig(MemorySegment projection, MemorySegment viewOffset, MemorySegment leftLensCenter, MemorySegment rightLensCenter, MemorySegment leftScreenCenter, MemorySegment rightScreenCenter, MemorySegment scale, MemorySegment scaleIn) Construct with auto memory allocator and fields initialized as specified- Parameters:
projection
- VR projection matrices (per eye)viewOffset
- VR view offset matrices (per eye)leftLensCenter
- VR left lens centerrightLensCenter
- VR right lens centerleftScreenCenter
- VR left screen centerrightScreenCenter
- VR right screen centerscale
- VR distortion scalescaleIn
- VR distortion scale in
-
VrStereoConfig
public VrStereoConfig(SegmentAllocator arena, MemorySegment projection, MemorySegment viewOffset, MemorySegment leftLensCenter, MemorySegment rightLensCenter, MemorySegment leftScreenCenter, MemorySegment rightScreenCenter, MemorySegment scale, MemorySegment scaleIn) Construct with your own memory allocator and fields initialized as specified- Parameters:
projection
- VR projection matrices (per eye)viewOffset
- VR view offset matrices (per eye)leftLensCenter
- VR left lens centerrightLensCenter
- VR right lens centerleftScreenCenter
- VR left screen centerrightScreenCenter
- VR right screen centerscale
- VR distortion scalescaleIn
- VR distortion scale in
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of VrStereoConfig -
allocateArray
Allocate an array of VrStereoConfig -
getProjection
VR projection matrices (per eye) -
setProjection
VR projection matrices (per eye) -
getViewOffset
VR view offset matrices (per eye) -
setViewOffset
VR view offset matrices (per eye) -
getLeftLensCenter
VR left lens center -
setLeftLensCenter
VR left lens center -
getRightLensCenter
VR right lens center -
setRightLensCenter
VR right lens center -
getLeftScreenCenter
VR left screen center -
setLeftScreenCenter
VR left screen center -
getRightScreenCenter
VR right screen center -
setRightScreenCenter
VR right screen center -
getScale
VR distortion scale -
setScale
VR distortion scale -
getScaleIn
VR distortion scale in -
setScaleIn
VR distortion scale in
-