30 const std::shared_ptr<Buffers::FormaBuffer>& batch,
33 std::function<
float(T)> project = {})
37 std::move(form.
geometry), std::move(initial), std::move(project));
40 form.
wire(surface.ctx(), mapped.element.id, mapped.state);
68 std::function<
float(T)> project = {})
71 surface, std::move(form.
geometry), std::move(initial),
75 form.
wire(surface.ctx(), mapped.element.id, mapped.state);
113 std::function<
float(T)> project = {})
116 surface, std::move(geom), std::move(initial),
topology, std::move(project));
134 std::function<
float(T)> project = {})
137 surface, std::move(target), std::move(geom), std::move(initial), std::move(project));
179 std::shared_ptr<Portal::Text::PressParams> params =
nullptr,
180 std::string initial_text = {},
181 bool scrollable =
false);
229 std::shared_ptr<Buffers::FormaBuffer>
batch;
247 ? Portal::Forma::create<T>(target,
batch, std::move(
form), std::move(
initial))
248 : Portal::Forma::create<T>(target, std::move(
form), std::move(
initial));
Illustrative geometry functions for common Mapped use cases.
PrimitiveTopology topology
PrimitiveTopology
Vertex assembly primitive topology.
Axis-aligned bounding rectangle in a 2D coordinate space.