MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
TextBuffer.cpp
Go to the documentation of this file.
1#include "TextBuffer.hpp"
2
5
7
8namespace MayaFlux::Buffers {
9
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}
22
23} // namespace MayaFlux::Buffers
#define MF_RT_ERROR(comp, ctx,...)
void setup_rendering(const RenderConfig &config) override
Delegates to TextureBuffer::setup_rendering, then enables streaming mode on the TextureProcessor and ...
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.
Unified rendering configuration for graphics buffers.