Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
G3D::OpenVR::OpenVRHMD Class Reference

Inherits HMD.

Public Member Functions

virtual float displayFrequency () const override
 In Hz. More...
 
virtual void getPassThroughVideo (shared_ptr< Texture > &left, shared_ptr< Texture > &right) const override
 The left and right may be the same Texture. More...
 
virtual void getResolution (Vector2uint32 *res) const override
 
virtual void getViewCameraMatrices (float nearPlaneZ, float farPlaneZ, CFrame *viewToHead, Projection *viewProjection) const override
 
virtual int numViews () const
 
virtual bool rightEyeDominant () const override
 
virtual bool rightHanded () const override
 
virtual float standingHeadHeight () const override
 
virtual void submitFrame (RenderDevice *rd, const shared_ptr< Framebuffer > *hmdDeviceFramebuffer) override
 

Static Public Member Functions

static shared_ptr< OpenVRHMDcreate (int index, int openVRIndex, const String &name, OpenVR *xr)
 

Protected Member Functions

 OpenVRHMD (int index, int openVRIndex, const String &name, OpenVR *xr)
 
virtual ~OpenVRHMD ()
 
void setLeftController (const shared_ptr< OpenVRController > &controller)
 
void setRightController (const shared_ptr< OpenVRController > &controller)
 

Protected Attributes

vr::TrackedCameraHandle_t m_TrackedCameraHandle = 0
 
OpenVRm_xr
 

Friends

class OpenVR
 

Constructor & Destructor Documentation

◆ OpenVRHMD()

G3D::OpenVR::OpenVRHMD::OpenVRHMD ( int  index,
int  openVRIndex,
const String name,
OpenVR xr 
)
inlineprotected

◆ ~OpenVRHMD()

virtual G3D::OpenVR::OpenVRHMD::~OpenVRHMD ( )
protectedvirtual

Member Function Documentation

◆ create()

static shared_ptr<OpenVRHMD> G3D::OpenVR::OpenVRHMD::create ( int  index,
int  openVRIndex,
const String name,
OpenVR xr 
)
inlinestatic

◆ displayFrequency()

virtual float G3D::OpenVR::OpenVRHMD::displayFrequency ( ) const
overridevirtual

In Hz.

◆ getPassThroughVideo()

virtual void G3D::OpenVR::OpenVRHMD::getPassThroughVideo ( shared_ptr< Texture > &  left,
shared_ptr< Texture > &  right 
) const
overridevirtual

The left and right may be the same Texture.

They may also be Texture::black() if there is no passthrough video.

◆ getResolution()

virtual void G3D::OpenVR::OpenVRHMD::getResolution ( Vector2uint32 res) const
overridevirtual

◆ getViewCameraMatrices()

virtual void G3D::OpenVR::OpenVRHMD::getViewCameraMatrices ( float  nearPlaneZ,
float  farPlaneZ,
CFrame viewToHead,
Projection viewProjection 
) const
overridevirtual

◆ numViews()

virtual int G3D::OpenVR::OpenVRHMD::numViews ( ) const
inlinevirtual

◆ rightEyeDominant()

virtual bool G3D::OpenVR::OpenVRHMD::rightEyeDominant ( ) const
overridevirtual

◆ rightHanded()

virtual bool G3D::OpenVR::OpenVRHMD::rightHanded ( ) const
overridevirtual

◆ setLeftController()

void G3D::OpenVR::OpenVRHMD::setLeftController ( const shared_ptr< OpenVRController > &  controller)
inlineprotected

◆ setRightController()

void G3D::OpenVR::OpenVRHMD::setRightController ( const shared_ptr< OpenVRController > &  controller)
inlineprotected

◆ standingHeadHeight()

virtual float G3D::OpenVR::OpenVRHMD::standingHeadHeight ( ) const
overridevirtual

◆ submitFrame()

virtual void G3D::OpenVR::OpenVRHMD::submitFrame ( RenderDevice rd,
const shared_ptr< Framebuffer > *  hmdDeviceFramebuffer 
)
overridevirtual

Friends And Related Function Documentation

◆ OpenVR

friend class OpenVR
friend

Member Data Documentation

◆ m_TrackedCameraHandle

vr::TrackedCameraHandle_t G3D::OpenVR::OpenVRHMD::m_TrackedCameraHandle = 0
mutableprotected

◆ m_xr

OpenVR* G3D::OpenVR::OpenVRHMD::m_xr
protected

documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15