MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Stagecraft.cpp
Go to the documentation of this file.
1#include "Stagecraft.hpp"
2
5
7
8namespace MayaFlux {
9
10std::shared_ptr<Nexus::Fabric> create_fabric(const std::string& name, float cell_size)
11{
12 auto fabric = std::make_shared<Nexus::Fabric>(
14 fabric->set_name(name);
15 return fabric;
16}
17
18std::shared_ptr<Nexus::Tapestry> create_tapestry()
19{
20 return std::make_shared<Nexus::Tapestry>(get_scheduler(), get_event_manager(), get_buffer_manager());
21}
22
23} // namespace MayaFlux
Nexus objects that need the engine's managers, built with them already supplied.
std::shared_ptr< Vruta::EventManager > get_event_manager()
Gets the event manager from the default engine.
Definition Chronie.cpp:31
std::shared_ptr< Nexus::Fabric > create_fabric(const std::string &name, float cell_size)
Construct a named Fabric over the default engine's managers.
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148
std::shared_ptr< Nexus::Tapestry > create_tapestry()
Construct a Tapestry over the default engine's managers.
std::shared_ptr< Vruta::TaskScheduler > get_scheduler()
Gets the task scheduler from the default engine.
Definition Chronie.cpp:26
Main namespace for the Maya Flux audio engine.