 |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
1 #ifndef RAYLIB_CPP_INCLUDE_VRSIMULATOR_HPP_
2 #define RAYLIB_CPP_INCLUDE_VRSIMULATOR_HPP_
4 #include "./raylib.hpp"
5 #include "./raylib-cpp-utils.hpp"
19 Set(info, distortion);
40 return ::IsVrSimulatorReady();
47 ::UpdateVrTracking(camera);
55 const ::Camera* cameraPointer =
reinterpret_cast<const Camera*
>(&camera);
56 ::UpdateVrTracking((::
Camera*)cameraPointer);
64 ::SetVrConfiguration(info, distortion);
101 #endif // RAYLIB_CPP_INCLUDE_VRSIMULATOR_HPP_
All raylib-cpp classes and functions appear in the raylib namespace.
~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.
Camera type, defines a camera position/orientation in 3d space.
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.