Navigation
API > API/Runtime > API/Runtime/HeadMountedDisplay
Inheritance Hierarchy
- IModuleInterface
- IHeadMountedDisplay
- FHeadMountedDisplayBase
- FPixelStreamingHMD
References
| Module | HeadMountedDisplay |
| Header | /Engine/Source/Runtime/HeadMountedDisplay/Public/IHeadMountedDisplay.h |
| Include | #include "IHeadMountedDisplay.h" |
Syntax
class IHeadMountedDisplay : public IModuleInterface
Remarks
HMD device interface
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CreateHMDPostProcessPass_RenderThread
(
FRDGBuilder& GraphBuilder, |
When implemented, creates a new post process node to provide platform-specific HMD distortion. | |
| bool | Returns true, if the app has VR focus, meaning if it is rendered in the HMD. | ||
| bool | Returns true, if the App is using VR focus. | ||
| void | DrawDistortionMesh_RenderThread
(
FHeadMountedDisplayPassContext& Context, |
||
| void | DrawHiddenAreaMesh
(
FRHICommandList& RHICmdList, |
Optional method to draw a view's hidden area mesh where supported. | |
| void | DrawVisibleAreaMesh
(
FRHICommandList& RHICmdList, |
Optional method to draw a view's visible area mesh where supported. | |
| void | EnableHMD
(
bool bEnable |
Enables or disables switching to stereo. | |
| const float * | |||
| bool | GetChromaAbCorrectionValues
(
FVector4& K |
Gets the chromatic aberration correction shader values for the device. | |
| float | Gets the scaling factor, applied to the post process warping effect | ||
| FTexture * | Additional optional distortion rendering parameters | ||
| FTexture * | |||
| void | GetDistortionWarpValues
(
FVector4& K |
Gets the barrel distortion shader warp values for the device | |
| void | GetEyeRenderParams_RenderThread
(
const FHeadMountedDisplayPassContext& Context, |
Returns eye render params, used from PostProcessHMD, RenderThread. | |
| void | GetFieldOfView
(
float& InOutHFOVInDegrees, |
Calculates the FOV, based on the screen dimensions of the device. Original FOV is passed as params. | |
| const float * | |||
| bool | GetHMDDistortionEnabled
(
EShadingPath ShadingPath |
Whether HMDDistortion post processing is enabled or not | |
| bool | Get the name or id of the display to output for this HMD. | ||
| FName | GetHMDName () |
Retrieves the HMD name. | |
| EHMDWornState::Type | 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. | ||
| FIntPoint | Gets the ideal render target size for the debug canvas on the device. | ||
| FIntPoint | Gets the ideal render target size for the device. See vr.pixeldensity description. | ||
| float | |||
| float | Gets the offset (in clip coordinates) from the center of the screen for the lens position | ||
| float | Gets the current pixel density setting. | ||
| const float * | |||
| ISpectatorScreenController * | Return a pointer to the SpectatorScreenController for the HMD if supported, else null. | ||
| ISpectatorScreenController const * | |||
| FVector2D | |||
| FVector2D | |||
| FVector2D | |||
| FVector2D | |||
| bool | |||
| bool | |||
| bool | Returns 'false' if chromatic aberration correction is off. | ||
| bool | Returns true if HMD is currently connected. It may or may not be in use. | ||
| bool | IsHMDEnabled () |
Whether or not switching to stereo is enabled; if it is false, then EnableStereo(true) will do nothing. | |
| bool | If true, scene rendering should be skipped. | ||
| bool | Are we outputting so a Spectator Screen now. | ||
| bool | |||
| void | Record analytics | ||
| void | SetClippingPlanes
(
float NCP, |
Sets near and far clipping planes (NCP and FCP) for the HMD. | |
| void | SetInterpupillaryDistance
(
float NewInterpupillaryDistance |
Accessors to modify the interpupillary distance (meters) | |
| void | SetPixelDensity
(
const float NewDensity |
Sets the pixel density. This may cause render target resizing. | |
| void | UpdateScreenSettings
(
const FViewport* InViewport |
This method is able to change screen settings right before any drawing occurs. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| MonitorInfo |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Use IXRTrackingSystem::OnBeginRendering_GameThread instead | ||
| void | BeginRendering_RenderThread
(
const FTransform& NewRelativeTransform, |
Use IXRTrackingSystem::OnBeginRendering_Renderthread instead |