|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
nodiscard |
A new buffer for shared Forma content, not registered with any Layer.
Plain geometry, text and plot series draw as slices of it. Its fragment shader reads a negative vertex weight as glyph coverage and every other weight as nothing, so line widths and point sizes in the weight slot are safe. The "text" slot is bound at creation to the default glyph atlas image, or to an empty one-pixel image when there is no default atlas yet, because a draw is skipped while a binding the shader uses has nothing to write. TextSlice binds the real image on first use.
Callers that need their own shader or textures build a buffer with create_buffer instead.
| surface | Surface whose window the buffer draws to. |
| priority | Draw priority of the buffer; higher draws later. |
Definition at line 171 of file Atelier.cpp.
References MayaFlux::Portal::Graphics::RenderConfig::additional_textures, create_buffer(), MayaFlux::Portal::Graphics::RenderConfig::draw_priority, MayaFlux::Portal::Graphics::RenderConfig::fragment_shader, MayaFlux::Portal::Forma::Surface::render_config(), and text_image().
Referenced by create_scroll_batch(), and surface_batch().