3#ifdef BUILDSYSTEM_ENABLE_OPENXR_REMOTING_SUPPORT
4# include <OpenXRPlugin/Basics.h>
5# include <OpenXRPlugin/OpenXRIncludes.h>
7# include <Foundation/Configuration/Singleton.h>
8# include <GameEngine/XR/XRRemotingInterface.h>
25 virtual plResult Connect(
const char* szRemoteHostName, uint16_t remotePort,
bool bEnableAudio,
int iMaxBitrateKbps)
override;
33 void HandleEvent(
const XrEventDataBuffer& event);
36 bool m_bInitialized =
false;
Definition OpenXRSingleton.h:25
XR Remoting singleton interface. Allows for streaming the XR application to a remote device.
Definition XRRemotingInterface.h:71
virtual plResult Initialize()=0
Initializes the XR Remoting system. Needs to be done before plXRInterface is initialized.
virtual plResult Disconnect()=0
Disconnects from the remote device.
virtual plResult Deinitialize()=0
Shuts down XR Remoting. This will fail if XR actors still exists or if plXRInterface is still initial...
virtual plEnum< plXRRemotingConnectionState > GetConnectionState() const =0
Get the current connection state to the remote device.
virtual bool IsInitialized() const =0
Returns whether XR Remoting is initialized.
virtual plResult Connect(const char *szRemoteHostName, uint16_t remotePort=8265, bool bEnableAudio=true, int iMaxBitrateKbps=20000)=0
Tries to connect to the remote device.
virtual plXRRemotingConnectionEvent & GetConnectionEvent()=0
Returns the connection event to subscribe to connection changes.
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54