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

◆ create_buffer()

MAYAFLUX_API std::shared_ptr< Buffers::FormaBuffer > MayaFlux::Portal::Forma::create_buffer ( Graphics::RenderConfig  render)

Construct and register a FormaBuffer without creating a Mapped<T>.

The buffer triangulates, so slices of any topology draw together as one batch. Elements draw into slices of it, made with FormaTarget::slice_of, each carrying its own topology. BufferManager is taken from the stored initialize() state.

With the default multi-texture shader, positive vertex weights select an image and negative weights select glyph coverage. A custom fragment shader can use different semantics, as the plot shader does for line and point geometry mixed with glyphs.

Parameters
renderRender settings; build it with Surface::render_config, which sets the window. Textures, shaders and the rest are the caller's.
Returns
Registered, render-ready FormaBuffer.

Definition at line 103 of file Forma.cpp.

104{
105 return internal::atelier().create_buffer(std::move(render));
106}

References MayaFlux::Portal::Forma::internal::atelier(), and MayaFlux::Portal::Forma::internal::Atelier::create_buffer().

Referenced by MayaFlux::Portal::Forma::internal::add_text_row().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: