|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Form< float > MayaFlux::Portal::Forma::Geometry::horizontal_fader | ( | Kinesis::AABB2D | bounds, |
| float | handle_w, | ||
| glm::vec3 | track_color = glm::vec3(0.3F), |
||
| glm::vec3 | handle_color = glm::vec3(0.9F), |
||
| const std::function< glm::vec2()> & | live_offset = {} |
||
| ) |
Geometry function for a horizontal fader in NDC space.
| bounds | Full extent of the fader in NDC. |
| handle_w | Handle width in NDC units. |
| track_color | Track quad color. |
| handle_color | Handle quad color. |
| live_offset | Optional. Current translation of the drawn fader, e.g. a Scrollable's live scroll offset. Shifts both the rendered geometry and the drag's cursor mapping. |
Definition at line 18 of file FormFactory.cpp.
References MayaFlux::Kinesis::axis_fraction(), 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: