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

◆ create_element() [2/2]

template<typename T >
Mapped< T > MayaFlux::Portal::Forma::internal::Atelier::create_element ( Surface &  surface,
GeometryFn< T >  geom,
T  initial,
Graphics::PrimitiveTopology  topology = Graphics::PrimitiveTopology::TRIANGLE_STRIP,
std::function< float(T)>  project = {} 
)
inline

create_element on a buffer of its own, as a slice of topology, followed by one sync so bounds_hint and contains from the geometry function reach the Layer before the first frame.

Definition at line 165 of file Atelier.hpp.

170 {})
171 {
172 return create_element<T>(
173 surface,
174 FormaTarget::slice_of(create_buffer(surface.render_config()), topology),
175 std::move(geom), std::move(initial), std::move(project));
176 }
PrimitiveTopology topology
static FormaTarget slice_of(const std::shared_ptr< Buffers::FormaBuffer > &buffer, std::optional< Graphics::PrimitiveTopology > topology=std::nullopt)
A new empty slice of buffer, drawn after the others.
Definition Target.cpp:19
std::shared_ptr< Buffers::FormaBuffer > create_buffer(Graphics::RenderConfig render)
The single buffer construction path.
Definition Atelier.cpp:117

Referenced by MayaFlux::Portal::Forma::ColorPicker::place(), and MayaFlux::Portal::Forma::plot().

+ Here is the caller graph for this function: