|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Form< 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), |
||
| const std::function< glm::vec2()> & | live_offset = {} |
||
| ) |
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. |
| live_offset | Optional. Current translation of the drawn meter. |
Definition at line 320 of file FormFactory.cpp.
References MayaFlux::Kinesis::AABB2D::contains(), MayaFlux::Kinesis::filled_rect(), MayaFlux::Kinesis::AABB2D::height(), MayaFlux::Kinesis::AABB2D::max, MayaFlux::Kinesis::AABB2D::min, out, MayaFlux::Kakshya::to_mesh_vertices(), MayaFlux::Kinesis::AABB2D::translated(), MayaFlux::Portal::Graphics::TRIANGLE_STRIP, MayaFlux::Kinesis::AABB2D::width(), and write_verts().
Here is the call graph for this function: