Files
Seele/src/Engine/Graphics/SceneRenderPath.cpp
T

46 lines
802 B
C++
Raw Normal View History

2020-03-06 11:32:01 +01:00
#include "SceneRenderPath.h"
2020-05-05 01:51:13 +02:00
#include "Scene/Scene.h"
2020-06-02 11:46:18 +02:00
#include "Material/Material.h"
2020-06-08 01:44:47 +02:00
#include "Asset/AssetRegistry.h"
2020-03-06 11:32:01 +01:00
2020-06-02 11:46:18 +02:00
using namespace Seele;
SceneRenderPath::SceneRenderPath(Gfx::PGraphics graphics, Gfx::PViewport target)
2020-04-15 02:03:56 +02:00
: RenderPath(graphics, target)
, basePass(new BasePass(scene, graphics, target))
2020-03-06 11:32:01 +01:00
{
2020-06-08 01:44:47 +02:00
scene = new Scene();
PMeshAsset asset = AssetRegistry::findMesh("Unbenannt");
PActor rootActor = new Actor();
PPrimitiveComponent primitiveComponent = new PrimitiveComponent();
2020-03-06 11:32:01 +01:00
}
2020-06-02 11:46:18 +02:00
SceneRenderPath::~SceneRenderPath()
2020-03-06 11:32:01 +01:00
{
}
2020-06-02 11:46:18 +02:00
void SceneRenderPath::setTargetScene(PScene newScene)
{
scene = newScene;
}
void SceneRenderPath::init()
{
}
void SceneRenderPath::beginFrame()
{
}
void SceneRenderPath::render()
{
basePass->render();
2020-06-02 11:46:18 +02:00
}
void SceneRenderPath::endFrame()
{
}