|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API GeometryFn< glm::vec2 > MayaFlux::Portal::Forma::Geometry::crosshair | ( | float | arm_len = 0.04F, |
| glm::vec3 | color = glm::vec3(0.9F), |
||
| float | thickness = 1.F, |
||
| float | hit_radius = 0.05F |
||
| ) |
Geometry function for a crosshair indicator in NDC space.
| arm_len | Half-length of each arm in NDC units. |
| color | Line color. |
| thickness | Line thickness (maps to LineVertex::thickness). |
| hit_radius | Hit region radius in NDC units. |
PrimitiveTopology::LINE_LIST explicitly to create_element — the default TRIANGLE_STRIP will misinterpret the 4 vertices. Definition at line 266 of file Geometry.cpp.
References MayaFlux::Kinesis::circular_bounds(), MayaFlux::Kinesis::AABB2D::from_ndc(), MayaFlux::Kakshya::LineVertex::position, and write_verts().
Here is the call graph for this function: