Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Contains the IClientVirtualReality interface, which is implemented in
  4. // client.dll and called by engine.dll
  5. //
  6. // $NoKeywords: $
  7. //
  8. //===========================================================================//
  9. #ifndef ICLIENTVIRTUALREALITY_H
  10. #define ICLIENTVIRTUALREALITY_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "tier1/interface.h"
  15. #include "tier1/refcount.h"
  16. #include "appframework/IAppSystem.h"
  17. //-----------------------------------------------------------------------------
  18. // forward declarations
  19. //-----------------------------------------------------------------------------
  20. //-----------------------------------------------------------------------------
  21. // important enumeration
  22. //-----------------------------------------------------------------------------
  23. // NOTE NOTE NOTE!!!! If you up this, grep for "NEW_INTERFACE" to see if there is anything
  24. // waiting to be enabled during an interface revision.
  25. #define CLIENTVIRTUALREALITY_INTERFACE_VERSION "ClientVirtualReality001"
  26. //-----------------------------------------------------------------------------
  27. // The ISourceVirtualReality interface
  28. //-----------------------------------------------------------------------------
  29. abstract_class IClientVirtualReality : public IAppSystem
  30. {
  31. public:
  32. virtual ~IClientVirtualReality() {}
  33. // Placeholder for API revision
  34. virtual bool Connect( CreateInterfaceFn factory ) = 0;
  35. virtual void Disconnect() = 0;
  36. virtual void *QueryInterface( const char *pInterfaceName ) = 0;
  37. virtual InitReturnVal_t Init() = 0;
  38. virtual void Shutdown() = 0;
  39. // the interface
  40. // Draw the main menu in VR mode
  41. virtual void DrawMainMenu() = 0;
  42. };
  43. //-----------------------------------------------------------------------------
  44. extern IClientVirtualReality *g_pClientVR;
  45. #endif // ICLIENTVIRTUALREALITY_H