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

440{
441 m_vertices.reserve(m_control_points.size());
442
443 for (const auto& v : m_control_points) {
444 glm::vec3 color = m_force_uniform_color ? m_current_color : v.color;
445 float thickness = m_force_uniform_thickness ? m_current_thickness : v.thickness;
446
447 m_vertices.emplace_back(LineVertex {
448 .position = v.position,
449 .color = color,
450 .thickness = thickness });
451 }
452}
std::vector< LineVertex > m_control_points
Control points, newest first: index 0 is the most recently added.
Kakshya::LineVertex LineVertex
Definition VertexSpec.hpp:8

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

Referenced by generate_path_vertices().

+ Here is the caller graph for this function: