OculusVRHMDDevice
Engine/source/platform/input/oculusVR/oculusVRHMDDevice.h
Public Types
enum
SimulationTypes { ST_RIFT_PREVIEW }
Protected Attributes
Public Attributes
Protected Functions
Public Functions
generateRenderTarget(GFXTextureTargetRef & target, GFXTexHandle & depth, Point2I desiredSize)
const char *
getEyeOffsets(Point3F * offsets)
Returns eye offsets in torque coordinate space, i.e. z being up, x being left-right, and y being depth (forward).
getFovPorts(FovPort * dest)
getFrameEyePose(DisplayPose * outPose, U32 eyeId)
const char *
const char *
getStereoTargets(GFXTextureTarget ** dest)
getStereoViewports(RectI * dest)
bool
bool
isValid()
setCurrentConnection(GameConnection * connection)
setDrawCanvas(GuiCanvas * canvas)
Designates canvas we are drawing to. Also updates render targets.
setOptimalDisplaySize(GuiCanvas * canvas)
bool
Detailed Description
Public Types
SimulationTypes
Enumerator
- ST_RIFT_PREVIEW
Protected Attributes
U32 mActionCodeIndex
GameConnection * mConnection
U32 mCurrentCaps
ovrHmd mDevice
String mDisplayDeviceType
S32 mDisplayId
ovrEyeRenderDesc mEyeRenderDesc [2]
bool mFrameReady
F32 mInterpupillaryDistance
bool mIsValid
F32 mLensSeparation
ovrGraphicsLuid mLuid
String mManufacturer
String mProductName
F32 mProfileInterpupillaryDistance
Point2F mProjectionCenterOffset
bool mRenderConfigurationDirty
Point2I mResolution
Point2F mScreenSize
OculusVRSensorDevice * mSensor
U32 mSupportedCaps
bool mTimewarp
U32 mVersion
bool mVsync
Public Attributes
F32 mCurrentPixelDensity
ovrTexture * mDebugMirrorTexture
GFXTexHandle mDebugMirrorTextureHandle
ovrLayerDirect mDebugRenderLayer
GFXTexHandle mDebugStereoTexture
GFXDevice::GFXDeviceRenderStyles mDesiredRenderingMode
GuiCanvas * mDrawCanvas
GFXTextureTargetRef mEyeRT [2]
RectI mEyeViewport [2]
ovrTrackingState mLastTrackingState
ovrLayerEyeFov mRenderLayer
GFXFormat mRTFormat
ovrViewScaleDesc mScaleDesc
GFXTexHandle mStereoDepthTexture
GFXTextureTargetRef mStereoRT
OculusTexture * mTextureSwapSet
F32 smDesiredPixelDensity
Protected Functions
updateRenderInfo()
Public Functions
OculusVRHMDDevice()
~OculusVRHMDDevice()
cleanUp()
clearRenderTargets()
dismissWarning()
dumpMetrics()
generateRenderTarget(GFXTextureTargetRef & target, GFXTexHandle & depth, Point2I desiredSize)
getCurrentConnection()
getDisplayDeviceId()
getDisplayDeviceType()
getEyeOffsets(Point3F * offsets)
Returns eye offsets in torque coordinate space, i.e. z being up, x being left-right, and y being depth (forward).
getFovPorts(FovPort * dest)
getFrameEyePose(DisplayPose * outPose, U32 eyeId)
getIPD()
getLensSeparation()
getManufacturer()
getPreviewTexture()
getProductName()
getProfileIPD()
getProjectionCenterOffset()
getResolution()
getScreenSize()
getSensorDevice()
getStereoTargets(GFXTextureTarget ** dest)
getStereoViewports(RectI * dest)
getVersion()
isDisplayingWarning()
isValid()
onDeviceDestroy()
onEndFrame()
onStartFrame()
set(ovrHmd hmd, ovrGraphicsLuid luid, U32 actionCodeIndex)
setCurrentConnection(GameConnection * connection)
setDrawCanvas(GuiCanvas * canvas)
Designates canvas we are drawing to. Also updates render targets.
setIPD(F32 ipd)
setOptimalDisplaySize(GuiCanvas * canvas)
setupTargets()
updateCaps()