Graphics: Add RenderSystem and frame pipeline

This commit is contained in:
Jérôme Leclercq
2021-07-06 11:04:22 +02:00
parent 428a706fbe
commit 4ac5fe7cba
37 changed files with 1202 additions and 141 deletions

View File

@@ -0,0 +1,28 @@
// Copyright (C) 2021 Jérôme Leclercq
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp
#include <Nazara/Graphics/Components/CameraComponent.hpp>
#include <stdexcept>
#include <Nazara/Graphics/Debug.hpp>
namespace Nz
{
const RenderTarget& CameraComponent::GetRenderTarget()
{
if (!m_renderTarget)
throw std::runtime_error("no rendertarget set");
return* m_renderTarget;
}
ViewerInstance& CameraComponent::GetViewerInstance()
{
return m_viewerInstance;
}
const ViewerInstance& CameraComponent::GetViewerInstance() const
{
return m_viewerInstance;
}
}