Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::GeoEncoder::ScenePaint Struct Reference

Paint carried by one cross-entity batch instance: a solid colour, or a resolved gradient whose parameters and stop ramp the encoder copies into the slot's persistent paint block. More...

#include "donner/svg/renderer/geode/GeoEncoder.h"

Public Member Functions

bool isGradient () const
 True when this instance paints with a gradient rather than a colour.

Public Attributes

css::RGBA color = css::RGBA(0, 0, 0, 255)
const LinearGradientParamslinearGradient = nullptr
const RadialGradientParamsradialGradient = nullptr

Detailed Description

Paint carried by one cross-entity batch instance: a solid colour, or a resolved gradient whose parameters and stop ramp the encoder copies into the slot's persistent paint block.

The gradient pointers are borrowed for the duration of the call only.


The documentation for this struct was generated from the following file: