MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_layer()

MAYAFLUX_API std::pair< std::shared_ptr< Layer >, std::shared_ptr< Context > > MayaFlux::Portal::Forma::create_layer ( const std::shared_ptr< Core::Window > &  window,
std::string  name 
)

Construct a Layer and a Context wired to window.

EventManager is taken from the stored initialize() state. The caller owns both returned objects. The Context cancels its event coroutines on destruction.

Parameters
windowTarget window surface.
nameUnique name scoping the Context's event coroutines.
Returns
Pair of { shared_ptr<Layer>, shared_ptr<Context> }.

Definition at line 69 of file Forma.cpp.

70{
71 return internal::atelier().create_layer(window, std::move(name));
72}
std::string name
Definition VKDevice.cpp:143

References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::create_layer(), and name.

+ Here is the call graph for this function: