|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
Presents document tiles by compositing them onto the window framebuffer underneath the ImGui UI. More...
#include "donner/editor/DocumentPresenter.h"
Public Member Functions | |
| FramebufferUnderlayPresenter (FramebufferUnderlayPlanSink planSink) | |
| DocumentPresentationResult | resolveExternalSurface (const DocumentPresentationFrame &frame) override |
| Stage 1: open the frame and resolve the transform this frame's document pixels are placed with. | |
| bool | presentUnderlay (std::optional< FramebufferUnderlayPlan > plan) override |
| Stage 2: install this frame's framebuffer underlay plan, or clear the underlay when there is nothing directly presentable. | |
| std::uint64_t | refusedUnderlayPresentCount () const override |
| Count of stage-2 calls refused because no frame was open. Diagnostic only. | |
Presents document tiles by compositing them onto the window framebuffer underneath the ImGui UI.
The only presenter, on every platform.
|
explicit |
| planSink | Installs or clears the window's underlay draw plan. |
|
overridevirtual |
Stage 2: install this frame's framebuffer underlay plan, or clear the underlay when there is nothing directly presentable.
Closes the frame.
| plan | Tiles and placement for the underlay, or std::nullopt. |
Implements donner::editor::DocumentPresenter.
|
inlinenodiscardoverridevirtual |
Count of stage-2 calls refused because no frame was open. Diagnostic only.
Implements donner::editor::DocumentPresenter.
|
overridevirtual |
Stage 1: open the frame and resolve the transform this frame's document pixels are placed with.
| frame | Per-frame presentation inputs. |
Implements donner::editor::DocumentPresenter.