LightsprintSDK 2021.08.08
|
#include <VRDevice.h>
Public Member Functions | |
VRDevice () | |
virtual void | getPose (rr::RRVec3 &outPos, rr::RRVec3 &outRot)=0 |
void | updateCamera (rr::RRCamera &camera) |
virtual | ~VRDevice () |
Public Attributes | |
float | resMultiplier |
Common features of VR devices, e.g. positions of controllers.
By creating VR device, your program shows up on HMD and you are expected to start rendering soon. You render simply by adding stereo plugin to plugin chain, which calls either oculus or openvr plugin, depending on your device.
Note that there is no need to expose functions specific for rendering (see how oculus/openvr plugins render).
|
inline |
|
inlinevirtual |
Releases HMD, so it can be acquired by other programs.
|
pure virtual |
Returns HMD position and rotation.
void rr_gl::VRDevice::updateCamera | ( | rr::RRCamera & | camera | ) |
float rr_gl::VRDevice::resMultiplier |