Graphics/Camera: Add clear color per viewer

This commit is contained in:
Jérôme Leclercq
2021-11-13 20:06:34 +01:00
parent a812c69e69
commit 342c053faa
7 changed files with 22 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ namespace Nz
~Camera() = default;
inline float GetAspectRatio() const;
const Color& GetClearColor() const override;
inline DegreeAnglef GetFOV() const;
UInt32 GetRenderMask() const override;
const RenderTarget& GetRenderTarget() override;
@@ -39,6 +40,7 @@ namespace Nz
inline float GetZFar() const;
inline float GetZNear() const;
inline void UpdateClearColor(Color color);
inline void UpdateFOV(DegreeAnglef fov);
inline void UpdateProjectionType(ProjectionType projectionType);
inline void UpdateRenderMask(UInt32 renderMask);
@@ -61,6 +63,7 @@ namespace Nz
NazaraSlot(RenderTarget, OnRenderTargetSizeChange, m_onRenderTargetSizeChange);
const RenderTarget* m_renderTarget;
Color m_clearColor;
DegreeAnglef m_fov;
ProjectionType m_projectionType;
Rectf m_targetRegion;