You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Legacy/CryCommon/StereoRendererBus.h

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 >;
}