Files
o3de/Code/Legacy/CryCommon/StereoRendererBus.h
T
Esteban Papp 9f0bbf3b74 SPEC-7531 Change Code/CryEngine to Code/Legacy (#1634)
* git mv Code\CryEngine Code\Legacy
* redirecting CMakeLists.txt
* fixing uic warning
* Some more CryEngine mentions
* validation scripts

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-06-29 13:51:24 -07:00

43 lines
1.1 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/EBus/EBus.h>
namespace AZ
{
///
/// The Stereo Renderer bus allows other systems to query various properties on the stereo renderer
///
class StereoRendererBus
: public EBusTraits
{
public:
//////////////////////////////////////////////////////////////////////////
// EBus Traits
static const EBusHandlerPolicy HandlerPolicy = EBusHandlerPolicy::Multiple;
static const EBusAddressPolicy AddressPolicy = EBusAddressPolicy::Single;
using MutexType = AZStd::recursive_mutex;
//////////////////////////////////////////////////////////////////////////
virtual ~StereoRendererBus() {}
///
/// Return whether the renderer is rendering to the HMD
///
/// @return True if rendering to the HMD
///
virtual bool IsRenderingToHMD() { return false; }
protected:
};
using StereoRendererRequestBus = EBus < StereoRendererBus >;
}