Files
o3de/Gems/Camera/Code/Source/CameraComponent.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

47 lines
1.6 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Component/Component.h>
#include <AzCore/Component/TransformBus.h>
#include <AzFramework/Components/ComponentAdapter.h>
#include <AzFramework/Components/CameraBus.h>
#include <IViewSystem.h>
#include <ISystem.h>
#include <Cry_Camera.h>
#include <CameraComponentController.h>
#include <Atom/RPI.Public/Base.h>
#include <Atom/RPI.Public/ViewportContextBus.h>
#include <Atom/RPI.Public/ViewProviderBus.h>
#include <Atom/RPI.Public/AuxGeom/AuxGeomFeatureProcessorInterface.h>
namespace Camera
{
//////////////////////////////////////////////////////////////////////////
/// The CameraComponent holds all of the data necessary for a camera.
/// Get and set data through the CameraRequestBus or TransformBus
//////////////////////////////////////////////////////////////////////////
using CameraComponentBase = AzFramework::Components::ComponentAdapter<CameraComponentController, CameraComponentConfig>;
class CameraComponent
: public CameraComponentBase
{
public:
AZ_COMPONENT(CameraComponent, CameraComponentTypeId, AZ::Component);
CameraComponent() = default;
CameraComponent(const CameraComponentConfig& properties);
virtual ~CameraComponent() = default;
// AZ::Component interface
void Activate() override;
void Deactivate() override;
static void Reflect(AZ::ReflectContext* reflection);
};
} // Camera