2021-01-19 15:30:00 +01:00
|
|
|
#include "InspectorView.h"
|
2021-11-14 20:36:53 +01:00
|
|
|
#include "Graphics/Graphics.h"
|
|
|
|
|
#include "Scene/Actor/Actor.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)
|
2021-11-13 19:28:18 +01:00
|
|
|
: View(graphics, window, createInfo, "InspectorView")
|
2021-10-15 23:12:29 +02:00
|
|
|
, uiPass(UIPass(graphics, viewport, new Gfx::SwapchainAttachment(window->getGfxHandle())))
|
2021-01-19 15:30:00 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InspectorView::~InspectorView()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-15 23:12:29 +02:00
|
|
|
void InspectorView::beginUpdate()
|
2021-01-19 15:30:00 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-01 19:55:04 +02:00
|
|
|
void InspectorView::update()
|
2021-01-19 15:30:00 +01:00
|
|
|
{
|
2021-10-01 19:55:04 +02:00
|
|
|
|
2021-01-19 15:30:00 +01:00
|
|
|
}
|
|
|
|
|
|
2021-10-15 23:12:29 +02:00
|
|
|
void InspectorView::commitUpdate()
|
2021-09-23 10:10:39 +02:00
|
|
|
{
|
2021-10-01 19:55:04 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void InspectorView::prepareRender()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-24 12:10:23 +01:00
|
|
|
Job InspectorView::render()
|
2021-10-01 19:55:04 +02:00
|
|
|
{
|
2021-11-24 12:10:23 +01:00
|
|
|
co_await uiPass.beginFrame();
|
|
|
|
|
co_await uiPass.render();
|
|
|
|
|
co_await uiPass.endFrame();
|
|
|
|
|
|
|
|
|
|
renderFinishedEvent.raise();
|
2021-09-23 10:10:39 +02:00
|
|
|
}
|
|
|
|
|
|
2021-11-24 12:10:23 +01:00
|
|
|
void InspectorView::keyCallback(KeyCode, InputAction, KeyModifier)
|
2021-09-23 10:10:39 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-24 12:10:23 +01:00
|
|
|
void InspectorView::mouseMoveCallback(double, double)
|
2021-09-23 10:10:39 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-24 12:10:23 +01:00
|
|
|
void InspectorView::mouseButtonCallback(MouseButton, InputAction, KeyModifier)
|
2021-09-23 10:10:39 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-24 12:10:23 +01:00
|
|
|
void InspectorView::scrollCallback(double, double)
|
2021-09-23 10:10:39 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-24 12:10:23 +01:00
|
|
|
void InspectorView::fileCallback(int, const char**)
|
2021-01-19 15:30:00 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|