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

◆ append_line_segment()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::append_line_segment ( const LineVertex v0,
const LineVertex v1,
std::vector< LineVertex > &  output 
)
private

Definition at line 159 of file PathGeneratorNode.cpp.

163{
164 glm::vec3 color0 = m_force_uniform_color ? m_current_color : v0.color;
165 glm::vec3 color1 = m_force_uniform_color ? m_current_color : v1.color;
166
167 float thick0 = m_force_uniform_thickness ? m_current_thickness : v0.thickness;
168 float thick1 = m_force_uniform_thickness ? m_current_thickness : v1.thickness;
169
170 output.push_back({ v0.position, color0, thick0 });
171 output.push_back({ v1.position, color1, thick1 });
172}

References MayaFlux::Nodes::LineVertex::color, m_current_color, m_current_thickness, m_force_uniform_color, m_force_uniform_thickness, MayaFlux::Nodes::LineVertex::position, and MayaFlux::Nodes::LineVertex::thickness.

Referenced by complete(), and draw_to().

+ Here is the caller graph for this function: