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

◆ setup_rendering()

void MayaFlux::Buffers::TextBuffer::setup_rendering ( const RenderConfig config)
overridevirtual

Delegates to TextureBuffer::setup_rendering, then enables streaming mode on the TextureProcessor and alpha blending on the RenderProcessor.

Parameters
configSame as TextureBuffer::setup_rendering.

Reimplemented from MayaFlux::Buffers::TextureBuffer.

Definition at line 10 of file TextBuffer.cpp.

11{
13 if (auto tex_proc = get_texture_processor()) {
14 tex_proc->set_streaming_mode(true);
15 } else {
17 "TextBuffer missing TextureProcessor during setup_rendering. Ensure the buffer is registered prior to calling setup rendering");
18 return;
19 }
20 get_render_processor()->enable_alpha_blending();
21}
#define MF_RT_ERROR(comp, ctx,...)
std::shared_ptr< TextureProcessor > get_texture_processor() const
std::shared_ptr< RenderProcessor > get_render_processor() const override
Get a RenderProcessor suitable for rendering this buffer.
virtual void setup_rendering(const RenderConfig &config)
Setup rendering with RenderProcessor.
@ Configuration
Configuration and parameter updates.
@ Buffers
Buffers, Managers, processors and processing chains.

References MayaFlux::Journal::Buffers, MayaFlux::Journal::Configuration, MayaFlux::Buffers::TextureBuffer::get_render_processor(), MayaFlux::Buffers::TextureBuffer::get_texture_processor(), MF_RT_ERROR, and MayaFlux::Buffers::TextureBuffer::setup_rendering().

+ Here is the call graph for this function: