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

◆ set_pen_offsets()

void MayaFlux::Nodes::GpuSync::GlyphGeometryNode::set_pen_offsets ( std::vector< glm::vec2 >  offsets)

Override pen offsets for all glyphs.

Each element corresponds to outlines()[i]. The caller computes whatever positions it wants (wave, noise, physics) and sets them here. write_vertices() uses these offsets on the next compute_frame().

Parameters
offsetsMust have the same size as outlines(). Silently ignored if sizes do not match.

Definition at line 137 of file GlyphGeometryNode.cpp.

138{
139 if (offsets.size() != m_outlines.size())
140 return;
141 m_pen_offsets = std::move(offsets);
142 m_vertex_data_dirty = true;
143}
bool m_vertex_data_dirty
Flag: vertex data or layout changed since last GPU upload.
std::vector< Portal::Text::GlyphOutline > m_outlines

References m_outlines, m_pen_offsets, and MayaFlux::Nodes::GpuSync::GeometryWriterNode::m_vertex_data_dirty.