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

◆ sink_render()

template<typename Entity, typename... Args>
requires requires(Entity& entity, Buffers::BufferManager& manager, const Portal::Graphics::RenderConfig& config, Args&&... args) { entity.render(manager, config, std::forward<Args>(args)...); }
void MayaFlux::sink_render ( const std::shared_ptr< Entity > & entity,
const Portal::Graphics::RenderConfig & config,
Args &&... args )

Register a render output for an Agent or Emitter.

Forwards to the entity's render with the engine's buffer manager. args are the optional name and producer function.

Definition at line 81 of file Stagecraft.hpp.

82{
83 entity->render(*get_buffer_manager(), config, std::forward<Args>(args)...);
84}
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148

References get_buffer_manager().

Here is the call graph for this function: