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

◆ GeometryFn

template<typename T >
using MayaFlux::Portal::Forma::GeometryFn = typedef std::function<void(T value, std::vector<uint8_t>& out_bytes, Element& element)>

Geometry function signature.

Called by the graphics tick when the version has advanced. Receives the current value and an output byte vector to fill with interleaved vertex data. Layout, stride, and topology are determined by how the caller constructed the VKBuffer and RenderProcessor — the function is agnostic to all of those.

The function is also responsible for updating the Element's spatial description if the geometry change affects hit testing (e.g. a handle that moves). It receives the Element by reference for that purpose.

Template Parameters
TValue type matching the MappedState.

Definition at line 64 of file Mapped.hpp.