20,741
edits
| Line 196: | Line 196: | ||
== Useful C++ changes == | == Useful C++ changes == | ||
{{Note|The following patches are intended to help better understand what's going on behind the scenes. They are intended to be regularly rebased onto SG/FG 'next'. In the mid-term, our hope is to ensure that people working on Nasal/Canvas related features get a better understanding about when, where and why performance is affected.}} | {{Note|The following patches are intended to help better understand what's going on behind the scenes. They are intended to be regularly rebased onto SG/FG 'next'. In the mid-term, our hope is to ensure that people working on Nasal/Canvas related features get a better understanding about when, where and why performance is affected.}} | ||
=== Serializing a Canvas to disk (as raster image) === | |||
The following C++ code can be used to easily serialize a Canvas to disk - this can be useful for making bug reports, without having to take/edit a full screen shot, it's based on the existing screen shot code that's been slightly adapted: | |||
<syntaxhighlight lang="diff"> | |||
</syntaxhighlight> | |||
=== Dumping Canvas scene graphs to disk === | === Dumping Canvas scene graphs to disk === | ||