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

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

References color, 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: