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

◆ vega

MAYAFLUX_API Creator MayaFlux::vega {}

Global Creator instance.

Every call on vega is one of three kinds:

  • Class-named factories (Sine, AudioBuffer, ModalNetwork, TextureBuffer and the rest of the registry) construct the class with exactly its constructor arguments. The pipe registers the result in a domain.
  • read_* loaders take a source and return the real object. read_audio, read_image, read_file, read_mesh and read_mesh_network load from a path or, with no argument, from the matching choose_* call. read_file returns a CompositeContainer for supported structured formats. read_mesh returns a MeshGroupHandle that the pipe registers. read_hid, read_midi, read_osc, read_tablet and read_input create an input node and register it against a binding.
  • evolve and mint take a config and perform the whole sequence, returning the real object with rendering attached.
auto wave = vega.Sine(440.f) | Audio[0];
auto buf = vega.AudioBuffer(0, 512) | Audio[0];
auto net = vega.ModalNetwork(16, 220.0) | Audio[{0, 1}];
auto tex = vega.TextureBuffer(...) | Graphics;
auto sfx = vega.read_audio("x.wav") | Audio;
auto image = vega.read_image("x.png") | Graphics;
auto records = vega.read_file("x.csv");
auto meshes = vega.read_mesh("x.fbx") | Graphics;
auto pad = vega.read_midi(config, binding);
auto life = vega.evolve(grid_config, seed, { .target_window = window });
auto smoke = vega.evolve(volume, flow_config, { .target_window = window });
auto form = vega.mint(StructureConfig::Object {
.mesh = mesh,
.render = { .target_window = window } });
IO::ImageData image
Definition Decoder.cpp:47
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
auto read_audio(const std::string &filepath) -> std::shared_ptr< Kakshya::SoundFileContainer >
Definition Creator.hpp:160
Evolve evolve
Sets a system going from a config: state that persists, a rule that advances it every cycle,...
Definition Creator.hpp:133
auto read_file(const std::string &filepath, std::optional< Kakshya::CompositeLayout > layout=std::nullopt) -> std::shared_ptr< Kakshya::CompositeContainer >
Load a supported Composite file into an owning container.
Definition Creator.hpp:205
auto read_image(const std::string &filepath, int desired_channels=4, std::optional< Kakshya::Region > region=std::nullopt) -> std::shared_ptr< Buffers::TextureBuffer >
Definition Creator.hpp:175
auto read_mesh(const std::string &filepath) -> MeshGroupHandle
Definition Creator.hpp:243
std::shared_ptr< Nodes::Input::MIDINode > read_midi(const Nodes::Input::MIDIConfig &config, const Core::InputBinding &binding)
Create and register MIDI input node.
Definition Creator.cpp:226
Mint mint
Builds a visible structure from a StructureConfig: resolves its source, constructs and registers what...
Definition Creator.hpp:156
Creator vega
Global Creator instance.
Definition Creator.cpp:28
static constexpr DomainSpec Audio
Domain constant for Audio domain.
Definition Creator.hpp:435
static constexpr DomainSpec Graphics
Domain constant for Graphics domain.
Definition Creator.hpp:444

Definition at line 28 of file Creator.cpp.

28{};