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

◆ geometry_with_containment()

template<typename T>
GeometryFn< T > MayaFlux::Portal::Forma::geometry_with_containment ( std::function< void(const T &, std::vector< uint8_t > &)> draw,
Containment region )
nodiscard

A geometry function that draws a value and claims a fixed containment.

Template Parameters
TState type the draw callable reads.
Parameters
drawWrites the vertex bytes for a value.
regionWritten onto the element on every draw.

Definition at line 39 of file Containment.hpp.

41{
42 return [draw = std::move(draw), region = std::move(region)](
43 T value, std::vector<uint8_t>& out, Element& element) {
44 draw(value, out);
45 apply_containment(element, region);
46 };
47}
void apply_containment(Element &element, const Containment &hit)
Write a hit region onto an element.
A bounded, renderable region on a window surface.
Definition Element.hpp:62

References apply_containment().

Referenced by MayaFlux::Portal::Forma::PolygonFactory::operator()(), scale_form(), and vertex_form().

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