|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Encodes a Path into Slug band decomposition format for GPU rendering. More...
#include "donner/svg/renderer/geode/GeodePathEncoder.h"
Static Public Member Functions | |
| static EncodedPath | encode (const Path &path, FillRule fillRule, double tolerance=0.1) |
| Encode a path for GPU rendering. | |
Encodes a Path into Slug band decomposition format for GPU rendering.
The encoding pipeline:
The output EncodedPath contains all data needed to fill the path on the GPU.
|
static |
Encode a path for GPU rendering.
| path | The path to encode. Will be preprocessed (cubic→quadratic, monotonic split). |
| fillRule | The fill rule (non-zero or even-odd) - stored for the fragment shader. |
| tolerance | Quadratic approximation tolerance (default 0.1, suitable for text-size). |