MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ filled_rect()

MAYAFLUX_API std::array< Kakshya::Vertex, 4 > MayaFlux::Kinesis::filled_rect ( Kinesis::AABB2D  region,
glm::vec3  color = glm::vec3(1.F) 
)

Generate a filled TRIANGLE_STRIP quad from an AABB2D.

Parameters
regionNDC axis-aligned bounds.
colorUniform fill color.

Definition at line 688 of file GeometryPrimitives.cpp.

689{
690 return { {
691 { .position = { region.min.x, region.min.y, 0.F }, .color = color },
692 { .position = { region.min.x, region.max.y, 0.F }, .color = color },
693 { .position = { region.max.x, region.min.y, 0.F }, .color = color },
694 { .position = { region.max.x, region.max.y, 0.F }, .color = color },
695 } };
696}

References filled_rect(), MayaFlux::Kinesis::AABB2D::max, and MayaFlux::Kinesis::AABB2D::min.

Referenced by filled_rect(), MayaFlux::Portal::Forma::Geometry::horizontal_fader(), MayaFlux::Portal::Forma::Geometry::level_meter(), MayaFlux::Portal::Forma::Plot::place_rect(), MayaFlux::Portal::Forma::Geometry::toggle(), and MayaFlux::Portal::Forma::Geometry::vertical_fader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: