2021-01-19 15:30:00 +01:00
|
|
|
#include "InspectorView.h"
|
2021-09-23 10:10:39 +02:00
|
|
|
#include "Window.h"
|
|
|
|
|
|
2021-01-19 15:30:00 +01:00
|
|
|
using namespace Seele;
|
|
|
|
|
|
|
|
|
|
InspectorView::InspectorView(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &createInfo)
|
|
|
|
|
: View(graphics, window, createInfo)
|
|
|
|
|
{
|
2021-09-23 10:10:39 +02:00
|
|
|
renderGraph = new RenderGraph();
|
|
|
|
|
Gfx::PRenderTargetAttachment attachment = new Gfx::SwapchainAttachment(window->getGfxHandle());
|
|
|
|
|
uiPass = new UIPass(renderGraph, graphics, viewport, attachment);
|
|
|
|
|
renderGraph->addRenderPass(uiPass);
|
|
|
|
|
renderGraph->setup();
|
2021-01-19 15:30:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InspectorView::~InspectorView()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::beginFrame()
|
|
|
|
|
{
|
2021-09-23 10:10:39 +02:00
|
|
|
uiPass->beginFrame();
|
2021-01-19 15:30:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::render()
|
|
|
|
|
{
|
2021-09-23 10:10:39 +02:00
|
|
|
uiPass->render();
|
2021-01-19 15:30:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::endFrame()
|
2021-09-23 10:10:39 +02:00
|
|
|
{
|
|
|
|
|
uiPass->endFrame();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::keyCallback(KeyCode code, InputAction action, KeyModifier modifier)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::mouseMoveCallback(double xPos, double yPos)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::mouseButtonCallback(MouseButton button, InputAction action, KeyModifier modifier)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::scrollCallback(double xOffset, double yOffset)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::fileCallback(int count, const char** paths)
|
2021-01-19 15:30:00 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|