 |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
25 #ifndef RAYLIB_CPP_INCLUDE_VRSIMULATOR_HPP_
26 #define RAYLIB_CPP_INCLUDE_VRSIMULATOR_HPP_
28 #include "./raylib.hpp"
29 #include "./raylib-cpp-utils.hpp"
40 Set(info, distortion);
61 return ::IsVrSimulatorReady();
68 ::UpdateVrTracking(camera);
76 const ::Camera* cameraPointer =
reinterpret_cast<const Camera*
>(&camera);
77 ::UpdateVrTracking((::
Camera*)cameraPointer);
85 ::SetVrConfiguration(info, distortion);
117 ::CloseVrSimulator();
122 #endif // RAYLIB_CPP_INCLUDE_VRSIMULATOR_HPP_
Provides all the classes associated with raylib-cpp.
~VrSimulator()
Close VR simulator for current device.
VrSimulator & Update(const ::Camera &camera)
Update VR tracking (position and orientation) and camera.
VrSimulator & Toggle()
Enable/Disable VR experience.
VrSimulator(::VrDeviceInfo info, ::Shader distortion)
VrSimulator & Update(::Camera *camera)
Update VR tracking (position and orientation) and camera.
void Init()
Init VR simulator for selected device parameters.
VrSimulator & EndDrawing()
End VR simulator stereo rendering.
void Close()
Close VR simulator for current device.
bool IsReady() const
Detect if VR simulator is ready.
VrSimulator & Set(::VrDeviceInfo info, ::Shader distortion)
Set stereo rendering configuration parameters.
VrSimulator & BeginDrawing()
Begin VR simulator stereo rendering.