OpenVRUtil

Engine/source/platform/input/openVR/openVRProvider.cpp

More...

Public Functions

convertMatrixFPlainToSteamVRAffineMatrix(const MatrixF & inMat, vr::HmdMatrix34_t & outMat)

Converts a MatrixF to a vr::HmdMatrix34_t.

Converts a point from OVR coords.

convertPointFromOVR(const vr::HmdVector3_t & v)

Converts a point to OVR coords.

Converts vr::HmdMatrix34_t to a MatrixF.

convertTransformFromOVR(const MatrixF & inRotTMat, MatrixF & outRotation)

Convert a matrix in OVR space to torque space.

convertTransformToOVR(const MatrixF & inRotation, MatrixF & outRotation)

Convert a matrix in torque space to OVR space.

GetTrackedDeviceString(vr::IVRSystem * pHmd, vr::TrackedDeviceIndex_t unDevice, vr::TrackedDeviceProperty prop, vr::TrackedPropertyError * peError)
vr::VRTextureBounds_t
TorqueRectToBounds(const RectI & rect, const Point2I & widthHeight)

Detailed Description

Public Functions

convertMatrixFPlainToSteamVRAffineMatrix(const MatrixF & inMat, vr::HmdMatrix34_t & outMat)

Converts a MatrixF to a vr::HmdMatrix34_t.

convertOpenVRButtonToTorqueButton(uint32_t vrButton)

convertPointFromOVR(const Point3F & point)

Converts a point from OVR coords.

convertPointFromOVR(const vr::HmdVector3_t & v)

convertPointToOVR(const Point3F & point)

Converts a point to OVR coords.

convertSteamVRAffineMatrixToMatrixFPlain(const vr::HmdMatrix34_t & mat)

Converts vr::HmdMatrix34_t to a MatrixF.

convertTransformFromOVR(const MatrixF & inRotTMat, MatrixF & outRotation)

Convert a matrix in OVR space to torque space.

convertTransformToOVR(const MatrixF & inRotation, MatrixF & outRotation)

Convert a matrix in torque space to OVR space.

GetTrackedDeviceString(vr::IVRSystem * pHmd, vr::TrackedDeviceIndex_t unDevice, vr::TrackedDeviceProperty prop, vr::TrackedPropertyError * peError)

TorqueRectToBounds(const RectI & rect, const Point2I & widthHeight)