|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API GeometryFn< float > MayaFlux::Portal::Forma::Geometry::level_meter | ( | Kinesis::AABB2D | bounds, |
| bool | horizontal = true, |
||
| glm::vec3 | fill_color = glm::vec3(0.2F, 0.7F, 0.3F), |
||
| glm::vec3 | track_color = glm::vec3(0.15F) |
||
| ) |
Geometry function for a level meter in NDC space.
No interaction. Drive from a node via bridge().at(el.state).bind(node).
| bounds | Full extent of the meter in NDC. |
| horizontal | True for left-to-right fill, false for bottom-to-top. |
| fill_color | Color of the active (filled) portion. |
| track_color | Color of the inactive remainder. |
Definition at line 234 of file Geometry.cpp.
References MayaFlux::Kinesis::AABB2D::contains(), MayaFlux::Kinesis::filled_rect(), MayaFlux::Kinesis::AABB2D::height(), MayaFlux::Kinesis::AABB2D::max, MayaFlux::Kinesis::AABB2D::min, MayaFlux::Kakshya::to_mesh_vertices(), MayaFlux::Kinesis::AABB2D::width(), and write_verts().
Here is the call graph for this function: