IHmdDevice

Represents a head-mounted device (Virtual Reality) connected to the system. More...

#include

Classes

struct IAsyncCameraCallback

Public Types

enum EInternalUpdate { eInternalUpdate_DebugInfo = 0 }

Public Member Functions

virtual void AddRef ()=0
virtual void Release ()=0
virtual EHmdClass GetClass () const =0
virtual void GetDeviceInfo (HmdDeviceInfo &info) const =0
virtual void GetCameraSetupInfo (float &fov, float &aspectRatioFactor) const =0
virtual void GetAsymmetricCameraSetupInfo (int nEye, float &fov, float &aspectRatio, float &asymH, float &asymV, float &eyeDist) const =0
virtual void UpdateInternal (EInternalUpdate)=0
virtual void RecenterPose ()=0
virtual void UpdateTrackingState (EVRComponent)=0
virtual const HmdTrackingState & GetNativeTrackingState () const =0
virtual const HmdTrackingState & GetLocalTrackingState () const =0
virtual Quad GetPlayArea () const =0
virtual Vec2 GetPlayAreaSize () const =0
virtual const IHmdController * GetController () const =0
virtual const EHmdSocialScreen GetSocialScreenType (bool *pKeepAspect=nullptr) const =0
virtual int GetControllerCount () const =0
virtual void GetPreferredRenderResolution (unsigned int &width, unsigned int &height)=0
virtual void DisableHMDTracking (bool disable)=0
virtual void SetAsyncCameraCallback (IAsyncCameraCallback *pCallback)
Assign a game side callback to be called asynchronously from any thread to update camera matrix.
virtual bool RequestAsyncCameraUpdate (AsyncCameraContext &context)
Can be called from any thread to retrieve most up to date camera transformation.

Detailed Description

Represents a head-mounted device (Virtual Reality) connected to the system.

Member Function Documentation

◆ GetLocalTrackingState()

virtual const HmdTrackingState& IHmdDevice::GetLocalTrackingState ( ) const
pure virtual
Returns
Tracking state in the Hmd's local tracking space using CRYENGINE's coordinate system.

◆ GetNativeTrackingState()

virtual const HmdTrackingState& IHmdDevice::GetNativeTrackingState ( ) const
pure virtual
Returns
Tracking state in Hmd's internal coordinates system.

◆ GetPlayArea()

virtual Quad IHmdDevice::GetPlayArea ( ) const
pure virtual
Returns
Quad (four corners) of the Play Area in which the player can move around safely. A value of zero indicates that this HMD does not handle room-scale functionality.

◆ GetPlayAreaSize()

virtual Vec2 IHmdDevice::GetPlayAreaSize ( ) const
pure virtual
Returns
2D width and height of the play area in which the player can move around safely. A value of zero indicates that this HMD does not handle room-scale functionality.