Chicane

Camera Component

Header
Chicane/Game/Transformable/Component/CameraComponent.hpp
Namespace
Chicane::CameraComponent

Camera attachment for Actors.

Constructors

ModifierNameDescription
CameraComponent()

Destructors

ModifierNameDescription
virtual~CameraComponent()

Override Functions

AccessModifierTypeNameDescription
publicvirtualvoidonActivation()
publicvirtualvoidonDeactivation()

Functions

AccessModifierTypeNameDescription
publicboolcanSee(const Transformable* inSubject)
publicconst Vec<2, std::uint32_t>&getViewport()
publicvoidsetViewport(std::uint32_t inWidth, std::uint32_t inHeight)
publicvoidsetViewport(const Vec<2, std::uint32_t>& inViewportResolution)
publicfloatgetAspectRatio()
publicfloatgetFieldOfView()
publicvoidsetFieldOfView(float inFov)
publicfloatgetNearClip()
publicvoidsetNearClip(float inNearClip)
publicfloatgetFarClip()
publicvoidsetFarClip(float inFarClip)
publicvoidsetClip(float inNearClip, float inFarClip)
publicconst Camera::UBO&getUBO()
protectedvoidupdateProjection()
protectedvoidupdateView()
protectedvoidupdateViewProjection()

Properties

AccessModifierTypeNameDescription
privateCamera::Settingsm_settings
privateCamera::SphereFrustumm_frustum
privateCamera::UBOm_UBO