Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::RendererGeode::Impl Struct Reference
Collaboration diagram for donner::svg::RendererGeode::Impl:
[legend]

Public Member Functions

std::optional< css::RGBAresolveSolidFill ()
 Resolve the current paint_.fill to a solid RGBA color, or nullopt if the fill is None or a paint server we don't yet support.
std::optional< css::RGBAresolveSolidStroke ()
 Resolve the current paint_.stroke to a solid RGBA color, or nullopt if the stroke is None or a paint server we don't yet support.
void syncTransform ()
 Push the renderer's currentTransform onto the encoder before drawing.
void fillResolved (const Path &path, FillRule rule)
 Issue a fill of the given path. Resolves the current paint and skips if the fill is non-solid or empty.

Public Attributes

bool verbose = false
std::unique_ptr< geode::GeodeDevicedevice
std::unique_ptr< geode::GeodePipelinepipeline
RenderViewport viewport
int pixelWidth = 0
int pixelHeight = 0
wgpu::Texture target
std::unique_ptr< geode::GeoEncoderencoder
PaintParams paint
Transform2d currentTransform
std::vector< Transform2dtransformStack
bool warnedClip = false
bool warnedLayer = false
bool warnedFilter = false
bool warnedMask = false
bool warnedPattern = false
bool warnedStroke = false
bool warnedGradient = false
bool warnedImage = false
bool warnedText = false

The documentation for this struct was generated from the following file:
  • donner/svg/renderer/RendererGeode.cc