|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< Buffers::FormaBuffer > MayaFlux::Portal::Forma::internal::Atelier::create_buffer | ( | Graphics::RenderConfig | render | ) |
The single buffer construction path.
Registers a FormaBuffer with the stored BufferManager under GRAPHICS_BACKEND and sets up rendering. The buffer always triangulates with TRIANGLE_LIST: what it draws is expressed by the topology of the slices made on it with FormaTarget::slice_of. Line and point slices are milled into NDC ribbons whose scalar is a width in pixels of the window's height at creation.
| render | Render settings; build it with Surface::render_config. Its topology and triangulate are set here. |
Definition at line 117 of file Atelier.cpp.
References MayaFlux::Journal::API, MayaFlux::Buffers::GRAPHICS_BACKEND, height, MayaFlux::Portal::Forma::internal::k_capacity_bytes, m_buffer_manager, m_initialized, MayaFlux::Journal::Portal, MayaFlux::Portal::Graphics::MillSpec::ribbon, MayaFlux::Portal::Graphics::RenderConfig::target_window, MayaFlux::Portal::Graphics::RenderConfig::topology, MayaFlux::Portal::Graphics::TRIANGLE_LIST, MayaFlux::Portal::Graphics::RenderConfig::triangulate, MayaFlux::Portal::Graphics::MillSpec::width_scale, and MayaFlux::Portal::Graphics::MillSpec::WorldPlane.
Referenced by MayaFlux::Portal::Forma::create_buffer(), MayaFlux::Portal::Forma::pick(), MayaFlux::Portal::Forma::Dropdown::place(), place_adornments(), and MayaFlux::Portal::Forma::plot().
Here is the caller graph for this function: