|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Surface MayaFlux::Portal::Forma::create_surface | ( | std::shared_ptr< Core::Window > | window, |
| std::string | name | ||
| ) |
Construct a Surface, creating Layer and Context internally.
Builds a fresh Layer and a Context wired to window using the EventManager stored by Portal::Forma::initialize. Equivalent to Portal::Forma::create_layer(window, name) plus owning the window pointer alongside.
For the power-tinkerer case (custom Context subclass, shared Layer across multiple Contexts, etc.), construct Surface directly via its (Window, Layer, Context) constructor.
| window | Target window. Must outlive the Surface. |
| name | Unique name scoping the Context's event coroutines. Must be unique across all live Contexts. |
Definition at line 234 of file Forma.cpp.
References create_layer().
Referenced by inspect(), inspect(), inspect(), inspect(), inspect_buffers(), inspect_events(), inspect_node_graph(), inspect_scheduler(), and plot().
Here is the call graph for this function:
Here is the caller graph for this function: