Loading...
Searching...
No Matches
score::gfx::ScreenNode Struct Reference

This node is used for rendering to a score::gfx::Window. More...

Inheritance diagram for score::gfx::ScreenNode:
score::gfx::OutputNode score::gfx::Node

Detailed Description

This node is used for rendering to a score::gfx::Window.

Classes

class  BasicRenderer
 
class  ScaledRenderer
 

Public Member Functions

 ScreenNode (bool embedded=false, bool startFullScreen=false)
 
 ScreenNode (std::shared_ptr< Window >)
 
void startRendering () override
 
void render () override
 
void onRendererChange () override
 
bool canRender () const override
 
void stopRendering () override
 
void setRenderer (std::shared_ptr< RenderList > r) override
 
RenderListrenderer () const override
 
void setScreen (QScreen *)
 
void setPosition (QPoint pos)
 
void setSize (QSize sz)
 
void setRenderSize (QSize sz)
 
void setFullScreen (bool)
 
void createOutput (GraphicsApi graphicsApi, std::function< void()> onReady, std::function< void()> onUpdate, std::function< void()> onResize) override
 
void destroyOutput () override
 
void updateGraphicsAPI (GraphicsApi) override
 
std::shared_ptr< RenderStaterenderState () const override
 
score::gfx::OutputNodeRenderercreateRenderer (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
 
Nodeoperator= (const Node &)=delete
 
Nodeoperator= (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 ()
 

Public Attributes

std::function< void(QPointF, QPointF)> onMouseMove
 
std::function< void(QTabletEvent *)> onTabletMove
 
std::function< void(int, const QString &)> onKey
 
- 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.
 
int32_t id = -1
 
bool addedToGraph {}
 

Member Function Documentation

◆ canRender()

bool score::gfx::ScreenNode::canRender ( ) const
overridevirtual

◆ configuration()

OutputNode::Configuration score::gfx::ScreenNode::configuration ( ) const
overridevirtualnoexcept

◆ createOutput()

void score::gfx::ScreenNode::createOutput ( GraphicsApi  graphicsApi,
std::function< void()>  onReady,
std::function< void()>  onUpdate,
std::function< void()>  onResize 
)
overridevirtual

◆ createRenderer()

score::gfx::OutputNodeRenderer * score::gfx::ScreenNode::createRenderer ( RenderList r) const
overridevirtualnoexcept

Create a renderer in a given context for this node.

Implements score::gfx::OutputNode.

◆ destroyOutput()

void score::gfx::ScreenNode::destroyOutput ( )
overridevirtual

◆ onRendererChange()

void score::gfx::ScreenNode::onRendererChange ( )
overridevirtual

◆ render()

void score::gfx::ScreenNode::render ( )
overridevirtual

◆ renderer()

RenderList * score::gfx::ScreenNode::renderer ( ) const
overridevirtual

◆ renderState()

std::shared_ptr< score::gfx::RenderState > score::gfx::ScreenNode::renderState ( ) const
overridevirtual

◆ setRenderer()

void score::gfx::ScreenNode::setRenderer ( std::shared_ptr< RenderList r)
overridevirtual

◆ startRendering()

void score::gfx::ScreenNode::startRendering ( )
overridevirtual

◆ stopRendering()

void score::gfx::ScreenNode::stopRendering ( )
overridevirtual

◆ updateGraphicsAPI()

void score::gfx::ScreenNode::updateGraphicsAPI ( GraphicsApi  api)
overridevirtual

Reimplemented from score::gfx::OutputNode.


The documentation for this struct was generated from the following files: