MayaFlux 1.0.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 229 of file PathGeneratorNode.cpp.

230{
231 m_draw_window.push_back(vertex);
232
233 if (m_draw_window.size() == 1) {
234 LineVertex first = vertex;
236 first.color = m_current_color;
237 }
239 first.thickness = m_current_thickness;
240 }
241 m_draw_vertices.push_back(first);
242 } else {
244 m_draw_window[m_draw_window.size() - 2],
245 vertex,
247 }
248
249 m_path_dirty = true;
250}
void append_line_segment(const LineVertex &v0, const LineVertex &v1, std::vector< LineVertex > &output)
Kakshya::LineVertex LineVertex
Definition VertexSpec.hpp:9

References append_line_segment(), MayaFlux::Kakshya::LineVertex::color, m_current_color, m_current_thickness, m_draw_vertices, m_draw_window, m_force_uniform_color, m_force_uniform_thickness, m_path_dirty, and MayaFlux::Kakshya::LineVertex::thickness.

+ Here is the call graph for this function: