2 #include <Gfx/Graph/OutputNode.hpp>
13 ScreenNode(
bool embedded =
false,
bool startFullScreen =
false);
17 void startRendering()
override;
18 void render()
override;
19 void onRendererChange()
override;
20 bool canRender()
const override;
21 void stopRendering()
override;
23 void setRenderer(std::shared_ptr<RenderList> r)
override;
26 void setScreen(QScreen*);
27 void setPosition(QPoint pos);
28 void setSize(QSize sz);
29 void setRenderSize(QSize sz);
30 void setFullScreen(
bool);
33 GraphicsApi graphicsApi, std::function<
void()> onReady,
34 std::function<
void()> onUpdate, std::function<
void()> onResize)
override;
35 void destroyOutput()
override;
38 std::shared_ptr<RenderState> renderState()
const override;
42 const std::shared_ptr<Window>& window()
const noexcept {
return m_window; }
44 std::function<void(QPointF, QPointF)> onMouseMove;
45 std::function<void(QTabletEvent*)> onTabletMove;
46 std::function<void(
int,
const QString&)> onKey;
51 std::shared_ptr<Window> m_window{};
52 QRhiSwapChain* m_swapChain{};
53 QRhiRenderBuffer* m_depthStencil{};
55 std::optional<QPoint> m_pos{};
56 std::optional<QSize> m_sz{};
57 std::optional<QSize> m_renderSz{};
Base class for sink nodes (QWindow, spout, syphon, NDI output, ...)
Definition: OutputNode.hpp:23
Definition: OutputNode.hpp:11
List of nodes to be rendered to an output.
Definition: RenderList.hpp:19
Definition: ScreenNode.cpp:464
Definition: ScreenNode.cpp:493
Graphics rendering pipeline for ossia score.
Definition: Filter/PreviewWidget.hpp:12
GraphicsApi
Available graphics APIs to use.
Definition: RenderState.hpp:17
Definition: OutputNode.hpp:48
This node is used for rendering to a score::gfx::Window.
Definition: ScreenNode.hpp:12