|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API GeometryFn< float > MayaFlux::Portal::Forma::Plot::background | ( | Kinesis::AABB2D | bounds, |
| glm::vec3 | color = glm::vec3(1.F), |
||
| const std::shared_ptr< Core::VKImage > & | texture = nullptr |
||
| ) |
TRIANGLE_STRIP background quad for a plot area.
Produces a solid-color or textured full-screen quad covering bounds. Intended to be added to the same Layer as a plot element via Layer::relate, rendered before it.
When texture is non-null the quad uses the textured vertex path and the caller must pass a matching FormaBuffer with a texture binding. When null the quad is filled with color.
T is float (a dummy tick value — the background is static unless the caller drives it). Write any float to state->write() to refresh.
| bounds | Plot area in NDC. |
| color | Fill color when no texture is provided. |
| texture | Optional GPU image. nullptr = solid color. |
Definition at line 88 of file PlotSpec.cpp.
References MayaFlux::Kakshya::VertexLayout::for_meshes(), MayaFlux::Kakshya::VertexLayout::for_textured_quad(), MayaFlux::Kinesis::AABB2D::max, MayaFlux::Kinesis::AABB2D::min, and MayaFlux::Kakshya::VertexLayout::stride_bytes.
Referenced by MayaFlux::Portal::Forma::Plot::WaveformBuilder::done(), MayaFlux::Portal::Forma::Plot::ScatterBuilder::done(), MayaFlux::Portal::Forma::Plot::BarsBuilder::done(), and MayaFlux::Portal::Forma::Plot::FilledWaveformBuilder::done().
Here is the call graph for this function:
Here is the caller graph for this function: