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

◆ draw_to()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::draw_to ( const LineVertex vertex)

Extend path with full LineVertex data.

Parameters
vertexLineVertex containing target position, color, thickness

Generates interpolated vertices between last added point and vertex.position. Appends generated vertices to existing geometry. No history awareness beyond last point.

Definition at line 174 of file PathGeneratorNode.cpp.

175{
176 m_draw_window.push_back(vertex);
177
178 if (m_draw_window.size() == 1) {
179 m_draw_vertices.push_back({ vertex });
180 } else {
182 m_draw_window[m_draw_window.size() - 2],
183 vertex,
185 }
186
187 m_vertex_data_dirty = true;
188}
bool m_vertex_data_dirty
Flag: vertex data or layout changed since last GPU upload.
void append_line_segment(const LineVertex &v0, const LineVertex &v1, std::vector< LineVertex > &output)

References append_line_segment(), m_draw_vertices, m_draw_window, and MayaFlux::Nodes::GpuSync::GeometryWriterNode::m_vertex_data_dirty.

+ Here is the call graph for this function: