2021-01-19 15:30:00 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "View.h"
|
2021-09-23 10:10:39 +02:00
|
|
|
#include "Graphics/RenderPass/RenderGraph.h"
|
|
|
|
|
#include "Graphics/RenderPass/UIPass.h"
|
2021-01-19 15:30:00 +01:00
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
2021-09-23 10:10:39 +02:00
|
|
|
DECLARE_REF(Actor)
|
2021-01-19 15:30:00 +01:00
|
|
|
class InspectorView : public View
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
InspectorView(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &createInfo);
|
|
|
|
|
virtual ~InspectorView();
|
|
|
|
|
virtual void beginFrame();
|
|
|
|
|
virtual void render();
|
|
|
|
|
virtual void endFrame();
|
2021-09-23 10:10:39 +02:00
|
|
|
void selectActor();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
Array<UI::PElement> rootElements;
|
|
|
|
|
PUIPass uiPass;
|
|
|
|
|
PActor selectedActor;
|
|
|
|
|
PRenderGraph renderGraph;
|
|
|
|
|
|
|
|
|
|
virtual void keyCallback(KeyCode code, InputAction action, KeyModifier modifier) override;
|
|
|
|
|
virtual void mouseMoveCallback(double xPos, double yPos) override;
|
|
|
|
|
virtual void mouseButtonCallback(MouseButton button, InputAction action, KeyModifier modifier) override;
|
|
|
|
|
virtual void scrollCallback(double xOffset, double yOffset) override;
|
|
|
|
|
virtual void fileCallback(int count, const char** paths) override;
|
2021-01-19 15:30:00 +01:00
|
|
|
};
|
2021-09-23 10:10:39 +02:00
|
|
|
DEFINE_REF(InspectorView)
|
2021-01-19 15:30:00 +01:00
|
|
|
} // namespace Seele
|