chai3d::cOVRDevice Class Reference

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
 

Detailed Description

This class implements support for the Oculus Rift DK2. The implementation uses SDK 0.8.0 (beta)

Constructor & Destructor Documentation

chai3d::cOVRDevice::cOVRDevice ( )
inline
chai3d::cOVRDevice::~cOVRDevice ( )

Member Function Documentation

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 ( )
bool chai3d::cOVRDevice::isDebugHMD ( ) const
inline
bool chai3d::cOVRDevice::isDK2 ( ) const
inline
void chai3d::cOVRDevice::showPerfStats ( ovrPerfHudMode  statsMode)
void chai3d::cOVRDevice::setMSAA ( bool  val)
inline
bool chai3d::cOVRDevice::MSAAEnabled ( ) const
inline
void chai3d::cOVRDevice::recenterPose ( )
inline
ovrSizei chai3d::cOVRDevice::getEyeTextureSize ( int  a_index)
inline

Member Data Documentation

ovrSession chai3d::cOVRDevice::m_hmdSession
protected
ovrHmdDesc chai3d::cOVRDevice::m_hmdDesc
protected
ovrEyeRenderDesc chai3d::cOVRDevice::m_eyeRenderDesc[ovrEye_Count]
protected
ovrPosef chai3d::cOVRDevice::m_eyeRenderPose[ovrEye_Count]
protected
ovrVector3f chai3d::cOVRDevice::m_hmdToEyeOffset[ovrEye_Count]
protected
OVRBuffer* chai3d::cOVRDevice::m_eyeBuffers[ovrEye_Count]
protected
OVR::Matrix4f chai3d::cOVRDevice::m_projectionMatrix[ovrEye_Count]
protected
OVR::Matrix4f chai3d::cOVRDevice::m_eyeViewOffset[ovrEye_Count]
protected
OVR::Matrix4f chai3d::cOVRDevice::m_eyeOrientation[ovrEye_Count]
protected
OVR::Matrix4f chai3d::cOVRDevice::m_eyePose[ovrEye_Count]
protected
double chai3d::cOVRDevice::m_frameTiming
protected
ovrTrackingState chai3d::cOVRDevice::m_trackingState
protected
ovrMirrorTexture chai3d::cOVRDevice::m_mirrorTexture
protected
ovrMirrorTextureDesc chai3d::cOVRDevice::m_mirrorDesc
protected
GLuint chai3d::cOVRDevice::m_nonDistortTexture
protected
GLuint chai3d::cOVRDevice::m_nonDistortDepthBuffer
protected
GLuint chai3d::cOVRDevice::m_mirrorFBO
protected
GLuint chai3d::cOVRDevice::m_nonDistortFBO
protected
int chai3d::cOVRDevice::m_nonDistortViewPortWidth
protected
int chai3d::cOVRDevice::m_nonDistortViewPortHeight
protected
bool chai3d::cOVRDevice::m_msaaEnabled
protected
long long chai3d::cOVRDevice::m_frameIndex
protected
double chai3d::cOVRDevice::m_sensorSampleTime
protected

The documentation for this class was generated from the following files: