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

◆ to_mesh_vertices()

MAYAFLUX_API std::vector< MeshVertex > MayaFlux::Kakshya::to_mesh_vertices ( std::span< const Vertex vertices,
glm::vec2  weight_range = { 0.0F, 1.0F } 
)

Batch-project raw Vertex vector to MeshVertex.

Parameters
verticesSource vertices
weight_rangeWeight range passed to to_mesh_vertex (for potential shader use)
Returns
MeshVertex vector of equal length

Definition at line 29 of file VertexFormats.cpp.

32{
33 std::vector<MeshVertex> out;
34 out.reserve(vertices.size());
35 for (const auto& s : vertices) {
36 out.push_back(to_mesh_vertex(s, weight_range));
37 }
38 return out;
39}
MeshVertex to_mesh_vertex(const Vertex &s, glm::vec2 weight_range={ 0.0F, 1.0F }) noexcept
Project raw Vertex to MeshVertex.

References to_mesh_vertex().

Referenced by MayaFlux::Portal::Forma::Geometry::horizontal_fader(), MayaFlux::Portal::Forma::Geometry::level_meter(), MayaFlux::Portal::Forma::Geometry::toggle(), and MayaFlux::Portal::Forma::Geometry::vertical_fader().

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