|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| Mapped< T > MayaFlux::Portal::Forma::create | ( | Surface & | surface, |
| const std::shared_ptr< Buffers::FormaBuffer > & | batch, | ||
| Geometry::Form< T > | form, | ||
| T | initial, | ||
| std::function< float(T)> | project = {} |
||
| ) |
Realize a Form on surface as a slice of batch.
Like create(), but the element draws into a slice of the shared buffer instead of a buffer of its own, with the Form's topology. Make the buffer with create_buffer() and pass it to every Form that should draw together; the Form's capacity is not used, the batch grows. A Form that needs its own buffer, such as one scissored by a Scrollable, uses create() instead.
| T | MappedState value type. |
| surface | Canvas to register on. |
| batch | Shared buffer from create_buffer(). |
| form | Geometry, topology and interaction. |
| initial | Starting value written into MappedState. |
| project | Optional T to float projection for outbound readers. |
Definition at line 28 of file Tend.hpp.