|
|
Donner 0.5.0
Embeddable browser-grade SVG2 engine
|
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). |