|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Form< glm::vec2 > MayaFlux::Portal::Forma::Geometry::position_picker | ( | Kinesis::AABB2D | bounds, |
| glm::vec3 | color = glm::vec3(0.9F), |
||
| float | size = 8.0F, |
||
| const std::function< glm::vec2()> & | live_offset = {} |
||
| ) |
Geometry function for a 2D position picker in NDC space.
| bounds | Full extent of the pick area in NDC. |
| color | Point color. |
| size | Point size in pixels. |
| live_offset | Optional. Current translation of the drawn area. |
Definition at line 149 of file FormFactory.cpp.
References color, MayaFlux::Kinesis::AABB2D::contains(), MayaFlux::Kinesis::AABB2D::height(), MayaFlux::Kinesis::AABB2D::max, MayaFlux::Kinesis::AABB2D::min, out, MayaFlux::Portal::Graphics::POINT_LIST, MayaFlux::Kinesis::polygon_bounds(), MayaFlux::Kakshya::PointVertex::position, size, MayaFlux::Kinesis::AABB2D::translated(), MayaFlux::Kinesis::unit_square(), MayaFlux::Kinesis::AABB2D::width(), and write_verts().
Here is the call graph for this function: