Loading...
Searching...
No Matches
score::gfx::ModelDisplayNode Struct Reference
A node that renders a model to screen. More...
Inheritance diagram for score::gfx::ModelDisplayNode:
Detailed Description
A node that renders a model to screen.
Public Member Functions | |
score::gfx::NodeRenderer * | createRenderer (RenderList &r) const noexcept override |
Create a renderer in a given context for this node. | |
void | process (Message &&msg) override |
Process a message from the execution engine. | |
Public Member Functions inherited from score::gfx::ProcessNode | |
void | materialChange () noexcept |
Used to notify a material change from the model to the renderers. | |
bool | hasMaterialChanged (int64_t &renderer) const noexcept |
void | geometryChange () noexcept |
Used to notify a geometry change from the model to the renderers. | |
bool | hasGeometryChanged (int64_t &renderer) const noexcept |
void | process (Message &&msg) override |
Process a message from the execution engine. | |
void | process (Timings tk) |
void | process (int32_t port, const ossia::value &v) |
void | process (int32_t port, const ossia::audio_vector &v) |
void | process (int32_t port, const ossia::geometry_spec &v) |
void | process (int32_t port, const ossia::transform3d &v) |
void | process (int32_t port, ossia::monostate) const noexcept |
void | process (int32_t port, const FunctionMessage &) |
Node () | |
Node (const Node &)=delete | |
Node (Node &&)=delete | |
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 | update () |
Public Attributes | |
ModelCameraUBO | ubo |
ossia::vec3f | position |
ossia::vec3f | center |
float | fov {90.f} |
float | near {0.001f} |
float | far {10000.f} |
int | texture_projection {} |
int | draw_mode {} |
int | camera_mode {} |
Public Attributes inherited from score::gfx::ProcessNode | |
std::atomic_int64_t | materialChanged {0} |
std::atomic_int64_t | geometryChanged {-1} |
ProcessUBO | standardUBO {} |
Every node matching with a score process will have such an UBO. | |
ossia::geometry_spec | geometry |
The geometry to use. | |
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 {} |
Additional Inherited Members | |
Protected Attributes inherited from score::gfx::NodeModel | |
std::unique_ptr< char[]> | m_materialData |
Member Function Documentation
◆ createRenderer()
|
overridevirtualnoexcept |
Create a renderer in a given context for this node.
Reimplemented from score::gfx::NodeModel.
◆ process()
|
overridevirtual |
Process a message from the execution engine.
Reimplemented from score::gfx::Node.
The documentation for this struct was generated from the following file: