Closed simsaens closed 1 month ago
Having this flag as an end()
parameter implies that it can change between frames. Is this useful to your case? If not, I'd prefer to add this as a flag in ContextConfig
as you suggested.
Good point! I will move this to ContextConfig
and put it back up for review
This adds an optional parameter to
end
to reset the view transform, changing its signature from:void end(Context* ctx);
to
void end(Context* ctx, bool resetViewTransform = true);
We set this to
false
when integratingvg-renderer
with our renderer, as resetting the view transform impacts the rendering state outside ofvg-renderer
in our integration.We have tried to preserve the public API here, in that existing uses should not be affected. However I would be happy to move this setting elsewhere (like
ContextConfig
) if it seems more appropriate.