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

The public interface of the HeadmountedDisplay Module 更多...

#include <IHeadMountedDisplayModule.h>

+ 类 IHeadMountedDisplayModule 继承关系图:

类

struct  FCompareModulePriority
 Sorting method for which plug-in should be given priority 更多...
 

Public 成员函数

virtual TSharedPtr< class IXRTrackingSystem, ESPMode::ThreadSafe > CreateTrackingSystem ()=0
 Attempts to create a new head tracking device interface 更多...
 
virtual FString GetAudioInputDevice ()
 Get name of audio input device where the HMD was last connected
 
virtual FString GetAudioOutputDevice ()
 Get name of audio output device where the HMD was last connected
 
virtual uint64 GetGraphicsAdapterLuid ()
 Get LUID of graphics adapter where the HMD was last connected. 更多...
 
virtual void GetModuleAliases (TArray< FString > &AliasesOut) const
 Returns an array of alternative ini/config names for this module (helpful if the module's name changes, so we can have back-compat)
 
virtual FString GetModuleKeyName () const =0
 Returns the key into the HMDPluginPriority section of the config file for this module
 
float GetModulePriority () const
 Returns the priority of this module from INI file configuration
 
virtual TSharedPtr< IHeadMountedDisplayVulkanExtensions, ESPMode::ThreadSafe > GetVulkanExtensions ()
 Extensions: If the HMD supports the various extensions listed below, it should return a valid pointer to an implementation contained within it.
 
virtual bool IsHMDConnected ()
 Test to see whether HMD is connected. 更多...
 
virtual bool PreInit ()
 Optionally pre-initialize the HMD module. 更多...
 
virtual void StartupModule () override
 Register module as an HMD on startup.
 
- 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

 

静态 Public 成员函数

static IHeadMountedDisplayModule & Get ()
 Singleton-like access to IHeadMountedDisplayModule 更多...
 
static bool IsAvailable ()
 Checks to see if there exists a module registered as an HMD. 更多...
 

详细描述

The public interface of the HeadmountedDisplay Module

成员函数说明

◆ CreateTrackingSystem()

virtual TSharedPtr< class IXRTrackingSystem, ESPMode::ThreadSafe > IHeadMountedDisplayModule::CreateTrackingSystem ( )
pure virtual

Attempts to create a new head tracking device interface

返回
Interface to the new head tracking device, if we were able to successfully create one

◆ Get()

static IHeadMountedDisplayModule & IHeadMountedDisplayModule::Get ( )
inlinestatic

Singleton-like access to IHeadMountedDisplayModule

返回
Returns reference to the highest priority IHeadMountedDisplayModule module

◆ GetGraphicsAdapterLuid()

virtual uint64 IHeadMountedDisplayModule::GetGraphicsAdapterLuid ( )
inlinevirtual

Get LUID of graphics adapter where the HMD was last connected.

@TODO currently, for mac, GetGraphicsAdapterLuid() is used to return a device index (how the function "GetGraphicsAdapter" used to work), not a ID... eventually we want the HMD module to return the MTLDevice's registryID, but we cannot fully handle that until we drop support for 10.12 NOTE: this is why we use -1 as a sentinel value representing "no device" (instead of 0, which is used in the LUID case)

◆ IsAvailable()

static bool IHeadMountedDisplayModule::IsAvailable ( )
inlinestatic

Checks to see if there exists a module registered as an HMD.

It is only valid to call Get() if IsAvailable() returns true.

返回
True if there exists a module registered as an HMD.

◆ IsHMDConnected()

virtual bool IHeadMountedDisplayModule::IsHMDConnected ( )
inlinevirtual

Test to see whether HMD is connected.

Used to guide which plug-in to select.

◆ PreInit()

virtual bool IHeadMountedDisplayModule::PreInit ( )
inlinevirtual

Optionally pre-initialize the HMD module.

Return false on failure.


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