MayaFlux 0.5.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 252 of file PathGeneratorNode.cpp.

253{
254 m_draw_window.push_back(vertex);
255
256 if (m_draw_window.size() == 1) {
257 m_draw_vertices.push_back({ vertex });
258 } else {
260 m_draw_window[m_draw_window.size() - 2],
261 vertex,
263 }
264
265 m_vertex_data_dirty = true;
266}
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: