engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IHeadMountedDisplay类 参考abstract

HMD device interface 更多...

#include <IHeadMountedDisplay.h>

+ 类 IHeadMountedDisplay 继承关系图:

Public 成员函数

virtual void BeginRendering_GameThread ()
 Called just before rendering the current frame on the game frame.
 
virtual void BeginRendering_RenderThread (const FTransform &NewRelativeTransform, FRHICommandListImmediate &RHICmdList, FSceneViewFamily &ViewFamily)
 Called just before rendering the current frame on the render thread. 更多...
 
virtual void CreateHMDPostProcessPass_RenderThread (class FRDGBuilder &GraphBuilder, const class FViewInfo &View, const struct FHMDDistortionInputs &Inputs, struct FScreenPassTexture &OutPass) const
 When implemented, creates a new post process node to provide platform-specific HMD distortion.
 
virtual bool DoesAppHaveVRFocus () const
 Returns true, if the app has VR focus, meaning if it is rendered in the HMD.
 
virtual bool DoesAppUseVRFocus () const
 Returns true, if the App is using VR focus. 更多...
 
virtual void DrawHiddenAreaMesh_RenderThread (class FRHICommandList &RHICmdList, EStereoscopicPass StereoPass) const
 Optional method to draw a view's hidden area mesh where supported. 更多...
 
virtual void DrawVisibleAreaMesh_RenderThread (class FRHICommandList &RHICmdList, EStereoscopicPass StereoPass) const
 Optional method to draw a view's visible area mesh where supported. 更多...
 
virtual void EnableHMD (bool bEnable=true)=0
 Enables or disables switching to stereo.
 
virtual bool GetChromaAbCorrectionValues (FVector4 &K) const
 Gets the chromatic aberration correction shader values for the device. 更多...
 
virtual float GetDistortionScalingFactor () const
 Gets the scaling factor, applied to the post process warping effect
 
virtual FTexture * GetDistortionTextureLeft () const
 Additional optional distortion rendering parameters 更多...
 
virtual void GetDistortionWarpValues (FVector4 &K) const
 Gets the barrel distortion shader warp values for the device
 
virtual void GetEyeRenderParams_RenderThread (const struct FRenderingCompositePassContext &Context, FVector2D &EyeToSrcUVScaleValue, FVector2D &EyeToSrcUVOffsetValue) const
 Returns eye render params, used from PostProcessHMD, RenderThread.
 
virtual void GetFieldOfView (float &InOutHFOVInDegrees, float &InOutVFOVInDegrees) const =0
 Calculates the FOV, based on the screen dimensions of the device. 更多...
 
virtual bool GetHMDDistortionEnabled (EShadingPath ShadingPath) const =0
 Whether HMDDistortion post processing is enabled or not
 
virtual bool GetHMDMonitorInfo (MonitorInfo &)=0
 Get the name or id of the display to output for this HMD.
 
virtual EHMDWornState::Type GetHMDWornState ()
 Returns EHMDWornState::Worn if we detect that the user is wearing the HMD, EHMDWornState::NotWorn if we detect the user is not wearing the HMD, and EHMDWornState::Unknown if we cannot detect the state.
 
virtual FIntPoint GetIdealDebugCanvasRenderTargetSize () const
 Gets the ideal render target size for the debug canvas on the device.
 
virtual FIntPoint GetIdealRenderTargetSize () const
 Gets the ideal render target size for the device. 更多...
 
virtual float GetLensCenterOffset () const
 Gets the offset (in clip coordinates) from the center of the screen for the lens position
 
virtual float GetPixelDenity () const
 Gets the current pixel density setting.
 
virtual class ISpectatorScreenController * GetSpectatorScreenController ()
 Return a pointer to the SpectatorScreenController for the HMD if supported, else null. 更多...
 
virtual bool HasHiddenAreaMesh () const
 
virtual bool HasVisibleAreaMesh () const
 
virtual bool IsChromaAbCorrectionEnabled () const =0
 Returns 'false' if chromatic aberration correction is off.
 
virtual bool IsHMDConnected ()=0
 Returns true if HMD is currently connected. 更多...
 
virtual bool IsHMDEnabled () const =0
 Whether or not switching to stereo is enabled; if it is false, then EnableStereo(true) will do nothing.
 
virtual bool IsRenderingPaused () const
 If true, scene rendering should be skipped.
 
virtual void RecordAnalytics ()
 Record analytics
 
virtual void SetClippingPlanes (float NCP, float FCP)
 Sets near and far clipping planes (NCP and FCP) for the HMD. 更多...
 
virtual void SetInterpupillaryDistance (float NewInterpupillaryDistance)=0
 Accessors to modify the interpupillary distance (meters)
 
virtual void SetPixelDensity (const float NewDensity)
 Sets the pixel density. 更多...
 
virtual void UpdateScreenSettings (const class FViewport *InViewport)
 This method is able to change screen settings right before any drawing occurs. 更多...
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 

详细描述

HMD device interface

成员函数说明

◆ BeginRendering_RenderThread()

virtual void IHeadMountedDisplay::BeginRendering_RenderThread ( const FTransform &  NewRelativeTransform,
FRHICommandListImmediate &  RHICmdList,
FSceneViewFamily &  ViewFamily 
)
inlinevirtual

Called just before rendering the current frame on the render thread.

Invoked before applying late update, so plugins that want to refresh poses on the render thread prior to late update. Use this to perform any initializations prior to rendering.

◆ DoesAppUseVRFocus()

virtual bool IHeadMountedDisplay::DoesAppUseVRFocus ( ) const
virtual

Returns true, if the App is using VR focus.

This means that the app may handle lifecycle events differently from the regular desktop apps. In this case, FCoreDelegates::ApplicationWillEnterBackgroundDelegate and FCoreDelegates::ApplicationHasEnteredForegroundDelegate reflect the state of VR focus (either the app should be rendered in HMD or not).

◆ DrawHiddenAreaMesh_RenderThread()

virtual void IHeadMountedDisplay::DrawHiddenAreaMesh_RenderThread ( class FRHICommandList &  RHICmdList,
EStereoscopicPass  StereoPass 
) const
inlinevirtual

Optional method to draw a view's hidden area mesh where supported.

This can be used to avoid rendering pixels which are not included as input into the final distortion pass.

◆ DrawVisibleAreaMesh_RenderThread()

virtual void IHeadMountedDisplay::DrawVisibleAreaMesh_RenderThread ( class FRHICommandList &  RHICmdList,
EStereoscopicPass  StereoPass 
) const
inlinevirtual

Optional method to draw a view's visible area mesh where supported.

This can be used instead of a full screen quad to avoid rendering pixels which are not included as input into the final distortion pass.

◆ GetChromaAbCorrectionValues()

virtual bool IHeadMountedDisplay::GetChromaAbCorrectionValues ( FVector4 &  K) const
inlinevirtual

Gets the chromatic aberration correction shader values for the device.

Returns 'false' if chromatic aberration correction is off.

◆ GetDistortionTextureLeft()

virtual FTexture * IHeadMountedDisplay::GetDistortionTextureLeft ( ) const
inlinevirtual

Additional optional distortion rendering parameters

待办事项:
: Once we can move shaders into plugins, remove these!

◆ GetFieldOfView()

virtual void IHeadMountedDisplay::GetFieldOfView ( float &  InOutHFOVInDegrees,
float &  InOutVFOVInDegrees 
) const
pure virtual

Calculates the FOV, based on the screen dimensions of the device.

Original FOV is passed as params.

◆ GetIdealRenderTargetSize()

virtual FIntPoint IHeadMountedDisplay::GetIdealRenderTargetSize ( ) const
inlinevirtual

Gets the ideal render target size for the device.

See vr.pixeldensity description.

◆ GetSpectatorScreenController()

virtual class ISpectatorScreenController * IHeadMountedDisplay::GetSpectatorScreenController ( )
inlinevirtual

Return a pointer to the SpectatorScreenController for the HMD if supported, else null.

The controller is owned by the HMD, and will be destroyed when the HMD is destroyed.

被 FHeadMountedDisplayBase 重载.

◆ HasHiddenAreaMesh()

virtual bool IHeadMountedDisplay::HasHiddenAreaMesh ( ) const
inlinevirtual
返回
true if a hidden area mesh is available for the device.

◆ HasVisibleAreaMesh()

virtual bool IHeadMountedDisplay::HasVisibleAreaMesh ( ) const
inlinevirtual
返回
true if a visible area mesh is available for the device.

◆ IsHMDConnected()

virtual bool IHeadMountedDisplay::IsHMDConnected ( )
pure virtual

Returns true if HMD is currently connected.

It may or may not be in use.

◆ SetClippingPlanes()

virtual void IHeadMountedDisplay::SetClippingPlanes ( float  NCP,
float  FCP 
)
inlinevirtual

Sets near and far clipping planes (NCP and FCP) for the HMD.

参数
NCP(in) Near clipping plane, in centimeters
FCP(in) Far clipping plane, in centimeters

◆ SetPixelDensity()

virtual void IHeadMountedDisplay::SetPixelDensity ( const float  NewDensity)
inlinevirtual

Sets the pixel density.

This may cause render target resizing.

◆ UpdateScreenSettings()

virtual void IHeadMountedDisplay::UpdateScreenSettings ( const class FViewport *  InViewport)
inlinevirtual

This method is able to change screen settings right before any drawing occurs.

It is called at the beginning of UGameViewportClient::Draw() method. We might remove this one as UpdatePostProcessSettings should be able to capture all needed cases


该类的文档由以下文件生成: