|
MayaFlux 0.5.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 74 of file Forma.cpp.
References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::create_surface(), and name.
Here is the call graph for this function: