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

◆ generate_direct_path()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::generate_direct_path ( )
private

Definition at line 366 of file PathGeneratorNode.cpp.

367{
368 auto view = m_control_points.linearized_view();
369 m_vertices.reserve(view.size());
370
371 for (const auto& v : view) {
372 glm::vec3 color = m_force_uniform_color ? m_current_color : v.color;
373 float thickness = m_force_uniform_thickness ? m_current_thickness : v.thickness;
374
375 m_vertices.emplace_back(LineVertex {
376 .position = v.position,
377 .color = color,
378 .thickness = thickness });
379 }
380}
Memory::HistoryBuffer< LineVertex > m_control_points

References m_control_points, m_current_color, m_current_thickness, m_force_uniform_color, m_force_uniform_thickness, m_vertices, and MayaFlux::Nodes::LineVertex::position.

Referenced by generate_path_vertices().

+ Here is the caller graph for this function: