CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::CameraComponent Struct Referencefinal

#include <CeresEngine/Scene/Camera.hpp>

Inheritance diagram for CeresEngine::CameraComponent:
CeresEngine::Component< CameraComponent > CeresEngine::AbstractComponent

Classes

struct  Accessor
 A class that describes access to a CameraComponent. More...
 

Public Member Functions

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo getClassInfo () const noexcept
 
virtual ::CeresEngine::ClassInfo getClassInfo () noexcept
 
 CameraComponent ()
 Creates a new CameraComponent with the default values.
 
 ~CameraComponent () noexcept final
 
- Public Member Functions inherited from CeresEngine::Component< CameraComponent >
const ComponentTypegetComponentType () const noexcept final
 Gets the component type.
 
- Public Member Functions inherited from CeresEngine::AbstractComponent
virtual ~AbstractComponent ()=default
 Defaulted virtual destructor.
 

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

double fieldOfView = 45.0
 The camera field of view.
 
double nearPlane = 0.1
 The distance where objects near from the camera start clipping.
 
double farPlane = std::numeric_limits<double>::infinity()
 The distance where objects far from the camera start clipping.
 
double aspectRatio = 4.0 / 3.0
 The screen aspect ration.
 
GPUImagePtr renderImage
 The render target that the camera should render to.
 
RendererCameraSettings rendererSettings
 A set of settings that should be used by renderer when rendering this camera.
 

Additional Inherited Members

- Static Public Attributes inherited from CeresEngine::Component< CameraComponent >
static const ComponentID componentID
 This component type ID.
 
static const ComponentMask mask
 The component mask.
 
static const ComponentTypecomponentType
 Gets the component type.
 

Constructor & Destructor Documentation

◆ CameraComponent()

CeresEngine::CameraComponent::CameraComponent ( )

Creates a new CameraComponent with the default values.

◆ ~CameraComponent()

CeresEngine::CameraComponent::~CameraComponent ( )
finalnoexcept

Member Function Documentation

◆ getClassInfo() [1/2]

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo CeresEngine::CameraComponent::getClassInfo ( ) const
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ getClassInfo() [2/2]

virtual ::CeresEngine::ClassInfo CeresEngine::CameraComponent::getClassInfo ( )
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::CameraComponent::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ aspectRatio

double CeresEngine::CameraComponent::aspectRatio = 4.0 / 3.0

The screen aspect ration.

◆ farPlane

double CeresEngine::CameraComponent::farPlane = std::numeric_limits<double>::infinity()

The distance where objects far from the camera start clipping.

◆ fieldOfView

double CeresEngine::CameraComponent::fieldOfView = 45.0

The camera field of view.

◆ nearPlane

double CeresEngine::CameraComponent::nearPlane = 0.1

The distance where objects near from the camera start clipping.

◆ rendererSettings

RendererCameraSettings CeresEngine::CameraComponent::rendererSettings

A set of settings that should be used by renderer when rendering this camera.

◆ renderImage

GPUImagePtr CeresEngine::CameraComponent::renderImage

The render target that the camera should render to.


The documentation for this struct was generated from the following file: