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

241{
242 glm::vec3 color0 = m_force_uniform_color ? m_current_color : v0.color;
243 glm::vec3 color1 = m_force_uniform_color ? m_current_color : v1.color;
244
245 float thick0 = m_force_uniform_thickness ? m_current_thickness : v0.thickness;
246 float thick1 = m_force_uniform_thickness ? m_current_thickness : v1.thickness;
247
248 output.push_back({ .position = v0.position, .color = color0, .thickness = thick0 });
249 output.push_back({ .position = v1.position, .color = color1, .thickness = thick1 });
250}
std::shared_ptr< Core::VKImage > output

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

Referenced by complete(), and draw_to().

+ Here is the caller graph for this function: