17 std::shared_ptr<Buffers::FormaBuffer> buf,
25 surface.
window()->get_state().current_width,
26 surface.
window()->get_state().current_height);
35 .render_bounds = render_bounds,
42 const uint32_t
id = surface.
layer().
add(std::move(el));
55 std::shared_ptr<Buffers::FormaBuffer> buf,
70 const uint32_t
id = surface.
layer().
add(std::move(el));
83 std::shared_ptr<Buffers::FormaBuffer> buf,
85 std::shared_ptr<Kakshya::PlotContainer> container)
87 auto mapped = make_mapped<std::shared_ptr<Kakshya::PlotContainer>>(
88 std::move(container), std::move(spec.
fn), std::move(buf));
91 mapped.state->
id = mapped.element.id;
92 mapped.force_redraw_on_sync =
true;
glm::uvec2 ndc_size_to_pixels(const AABB2D ®ion, uint32_t width, uint32_t height)
Convert an NDC AABB's extent to integer pixel dimensions.
std::array< Kakshya::Vertex, 4 > filled_rect(Kinesis::AABB2D region, glm::vec3 color)
Generate a filled TRIANGLE_STRIP quad from an AABB2D.
float height() const noexcept
float width() const noexcept
Construction parameters for press().