This class implements support for the Oculus Rift DK2. More...
#include <COculusDevice.h>
Classes | |
| struct | OVRBuffer |
Public Member Functions | |
| cOVRDevice () | |
| Constructor of cOVRDevice. More... | |
| ~cOVRDevice () | |
| Destructor of cOVRDevice. More... | |
| bool | initVR () |
| bool | initVRBuffers (int windowWidth, int windowHeight) |
| bool | initNonDistortMirror (int windowWidth, int windowHeight) |
| void | destroyVR () |
| const ovrSizei | getResolution () const |
| void | onRenderStart () |
| const OVR::Matrix4f | onEyeRender (int eyeIndex) |
| void | onEyeRender (int eyeIndex, cTransform &a_projectionMatrix, cTransform &a_modelViewMatrix) |
| void | onEyeRenderFinish (int eyeIndex) |
| const OVR::Matrix4f | getEyeMVPMatrix (int eyeIdx) const |
| void | submitFrame () |
| void | blitMirror (ovrEyeType numEyes=ovrEye_Count, int offset=0) |
| void | onNonDistortMirrorStart () |
| void | blitNonDistortMirror (int offset) |
| void | renderTrackerFrustum () |
| bool | isDebugHMD () const |
| bool | isDK2 () const |
| void | showPerfStats (ovrPerfHudMode statsMode) |
| void | setMSAA (bool val) |
| bool | MSAAEnabled () const |
| void | recenterPose () |
| ovrSizei | getEyeTextureSize (int a_index) |
Protected Attributes | |
| ovrSession | m_hmdSession |
| ovrHmdDesc | m_hmdDesc |
| ovrEyeRenderDesc | m_eyeRenderDesc [ovrEye_Count] |
| ovrPosef | m_eyeRenderPose [ovrEye_Count] |
| ovrVector3f | m_hmdToEyeOffset [ovrEye_Count] |
| OVRBuffer * | m_eyeBuffers [ovrEye_Count] |
| OVR::Matrix4f | m_projectionMatrix [ovrEye_Count] |
| OVR::Matrix4f | m_eyeViewOffset [ovrEye_Count] |
| OVR::Matrix4f | m_eyeOrientation [ovrEye_Count] |
| OVR::Matrix4f | m_eyePose [ovrEye_Count] |
| double | m_frameTiming |
| ovrTrackingState | m_trackingState |
| ovrMirrorTexture | m_mirrorTexture |
| ovrMirrorTextureDesc | m_mirrorDesc |
| GLuint | m_nonDistortTexture |
| GLuint | m_nonDistortDepthBuffer |
| GLuint | m_mirrorFBO |
| GLuint | m_nonDistortFBO |
| int | m_nonDistortViewPortWidth |
| int | m_nonDistortViewPortHeight |
| bool | m_msaaEnabled |
| long long | m_frameIndex |
| double | m_sensorSampleTime |
This class implements support for the Oculus Rift DK2. The implementation uses SDK 0.8.0 (beta)
|
inline |
| chai3d::cOVRDevice::~cOVRDevice | ( | ) |
| bool chai3d::cOVRDevice::initVR | ( | ) |
| bool chai3d::cOVRDevice::initVRBuffers | ( | int | windowWidth, |
| int | windowHeight | ||
| ) |
| bool chai3d::cOVRDevice::initNonDistortMirror | ( | int | windowWidth, |
| int | windowHeight | ||
| ) |
| void chai3d::cOVRDevice::destroyVR | ( | ) |
| const ovrSizei chai3d::cOVRDevice::getResolution | ( | ) | const |
| void chai3d::cOVRDevice::onRenderStart | ( | ) |
| const OVR::Matrix4f chai3d::cOVRDevice::onEyeRender | ( | int | eyeIndex | ) |
| void chai3d::cOVRDevice::onEyeRender | ( | int | eyeIndex, |
| cTransform & | a_projectionMatrix, | ||
| cTransform & | a_modelViewMatrix | ||
| ) |
| void chai3d::cOVRDevice::onEyeRenderFinish | ( | int | eyeIndex | ) |
| const OVR::Matrix4f chai3d::cOVRDevice::getEyeMVPMatrix | ( | int | eyeIdx | ) | const |
| void chai3d::cOVRDevice::submitFrame | ( | ) |
| void chai3d::cOVRDevice::blitMirror | ( | ovrEyeType | numEyes = ovrEye_Count, |
| int | offset = 0 |
||
| ) |
| void chai3d::cOVRDevice::onNonDistortMirrorStart | ( | ) |
| void chai3d::cOVRDevice::blitNonDistortMirror | ( | int | offset | ) |
| void chai3d::cOVRDevice::renderTrackerFrustum | ( | ) |
|
inline |
|
inline |
| void chai3d::cOVRDevice::showPerfStats | ( | ovrPerfHudMode | statsMode | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |