This node is used for rendering to a score::gfx::Window. More...
Detailed Description
This node is used for rendering to a score::gfx::Window.
Public Member Functions | |
| ScreenNode (Configuration conf, bool embedded=false, bool startFullScreen=false) | |
| void | startRendering () override |
| void | render () override |
| void | onRendererChange () override |
| bool | canRender () const override |
| void | stopRendering () override |
| void | setRenderer (std::shared_ptr< RenderList > r) override |
| RenderList * | renderer () const override |
| void | setScreen (QScreen *) |
| void | setPosition (QPoint pos) |
| void | setSize (QSize sz) |
| void | setRenderSize (QSize sz) |
| void | setFullScreen (bool) |
| void | setCursor (bool) |
| void | setTitle (QString) |
| void | setConfiguration (Configuration) |
| void | createOutput (score::gfx::OutputConfiguration) override |
| void | destroyOutput () override |
| void | updateGraphicsAPI (GraphicsApi) override |
| void | setVSyncCallback (std::function< void()>) override |
| Set a callback to drive rendering when there is a single output. | |
| std::shared_ptr< RenderState > | renderState () const override |
| score::gfx::OutputNodeRenderer * | createRenderer (RenderList &r) const noexcept override |
| Create a renderer in a given context for this node. | |
| Configuration | configuration () const noexcept override |
| const std::shared_ptr< Window > & | window () const noexcept |
Public Member Functions inherited from score::gfx::Node | |
| Node (const Node &)=delete | |
| Node (Node &&)=delete | |
| Node & | operator= (const Node &)=delete |
| Node & | operator= (Node &&)=delete |
| virtual void | renderedNodesChanged () |
| Whenever render nodes are added / removed. | |
| virtual void | process (Message &&msg) |
| Process a message from the execution engine. | |
| virtual void | update () |
| void | materialChange () noexcept |
| Used to notify a material change from the model to the renderers. | |
| bool | hasMaterialChanged (int64_t &renderer) const noexcept |
| void | renderTargetChange () noexcept |
| Used to notify a render target (texture inlet) change from the model to the renderers. | |
| bool | hasRenderTargetChanged (int64_t &renderer) const noexcept |
| QSize | resolveRenderTargetSize (int32_t port, RenderList &renderer) const noexcept |
| RenderTargetSpecs | resolveRenderTargetSpecs (int32_t port, RenderList &renderer) const noexcept |
| void | process (int32_t port, const ossia::render_target_spec &v) |
Public Attributes | |
| std::function< void(QPointF)> | onWindowMove |
| std::function< void(QPointF, QPointF)> | onMouseMove |
| std::function< void(QTabletEvent *)> | onTabletMove |
| std::function< void(int, const QString &)> | onKey |
| std::function< void(int, const QString &)> | onKeyRelease |
| std::function< void(float)> | onFps |
Public Attributes inherited from score::gfx::Node | |
| std::vector< Port * > | input |
| Input ports of that node. | |
| ossia::small_pod_vector< Port *, 1 > | output |
| Output ports of that node. | |
| ossia::flat_map< RenderList *, score::gfx::NodeRenderer * > | renderedNodes |
| Map associating each RenderList to a Renderer for this model. | |
| ossia::flat_map< int32_t, ossia::render_target_spec > | renderTargetSpecs |
| Render target info. | |
| std::atomic_int64_t | materialChanged {0} |
| std::atomic_int64_t | renderTargetSpecChanged {-1} |
| int32_t | nodeId = -1 |
| bool | requiresDepth {} |
| bool | addedToGraph {} |
Member Function Documentation
◆ canRender()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ configuration()
|
overridevirtualnoexcept |
Implements score::gfx::OutputNode.
◆ createOutput()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ createRenderer()
|
overridevirtualnoexcept |
Create a renderer in a given context for this node.
Implements score::gfx::OutputNode.
◆ destroyOutput()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ onRendererChange()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ render()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ renderer()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ renderState()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ setRenderer()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ setVSyncCallback()
|
overridevirtual |
Set a callback to drive rendering when there is a single output.
If we render to a single window, we can use the GPU V-Sync mechanism. Otherwise the implementation will create timers to keep things in sync.
Reimplemented from score::gfx::OutputNode.
◆ startRendering()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ stopRendering()
|
overridevirtual |
Implements score::gfx::OutputNode.
◆ updateGraphicsAPI()
|
overridevirtual |
Reimplemented from score::gfx::OutputNode.
The documentation for this struct was generated from the following files:
- ScreenNode.hpp
- ScreenNode.cpp
Public Member Functions inherited from