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

◆ apply_uniform_color()

std::vector< Nodes::LineVertex > MayaFlux::Kinesis::apply_uniform_color ( const std::vector< glm::vec3 > &  positions,
const glm::vec3 &  color,
float  default_thickness 
)

Apply uniform color to position vertices.

Definition at line 617 of file GeometryPrimitives.cpp.

621{
622 std::vector<Nodes::LineVertex> vertices;
623 vertices.reserve(positions.size());
624
625 for (const auto& pos : positions) {
626 vertices.push_back({ .position = pos,
627 .color = color,
628 .thickness = default_thickness });
629 }
630
631 return vertices;
632}

References apply_uniform_color().

Referenced by apply_uniform_color().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: