diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/iclientvirtualreality.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/iclientvirtualreality.h')
| -rw-r--r-- | public/iclientvirtualreality.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/public/iclientvirtualreality.h b/public/iclientvirtualreality.h new file mode 100644 index 0000000..b24cd26 --- /dev/null +++ b/public/iclientvirtualreality.h @@ -0,0 +1,64 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Contains the IClientVirtualReality interface, which is implemented in +// client.dll and called by engine.dll +// +// $NoKeywords: $ +// +//===========================================================================// + +#ifndef ICLIENTVIRTUALREALITY_H +#define ICLIENTVIRTUALREALITY_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "tier1/interface.h" +#include "tier1/refcount.h" +#include "appframework/IAppSystem.h" + +//----------------------------------------------------------------------------- +// forward declarations +//----------------------------------------------------------------------------- + +//----------------------------------------------------------------------------- +// important enumeration +//----------------------------------------------------------------------------- + +// NOTE NOTE NOTE!!!! If you up this, grep for "NEW_INTERFACE" to see if there is anything +// waiting to be enabled during an interface revision. +#define CLIENTVIRTUALREALITY_INTERFACE_VERSION "ClientVirtualReality001" + +//----------------------------------------------------------------------------- +// The ISourceVirtualReality interface +//----------------------------------------------------------------------------- + + + +abstract_class IClientVirtualReality : public IAppSystem +{ +public: + virtual ~IClientVirtualReality() {} + + // Placeholder for API revision + virtual bool Connect( CreateInterfaceFn factory ) = 0; + virtual void Disconnect() = 0; + virtual void *QueryInterface( const char *pInterfaceName ) = 0; + virtual InitReturnVal_t Init() = 0; + virtual void Shutdown() = 0; + + // the interface + + // Draw the main menu in VR mode + virtual void DrawMainMenu() = 0; +}; + + + +//----------------------------------------------------------------------------- + +extern IClientVirtualReality *g_pClientVR; + + +#endif // ICLIENTVIRTUALREALITY_H |