20,741
edits
| Line 136: | Line 136: | ||
Under the hood, the corresponding Nasal/C++ code updating Canvas textures would obviously still be running - it would just be rendering that is explicitly disabled here. | Under the hood, the corresponding Nasal/C++ code updating Canvas textures would obviously still be running - it would just be rendering that is explicitly disabled here. | ||
=== Hooking up Canvas to the Osg Stats === | === Hooking up Canvas to the Osg Stats === | ||
<syntaxhighlight lang="cpp"> | |||
</syntaxhighlight> | |||
=== Using Osg::Optimizer for complex Canvases === | |||
Once a complex Canvas texture (MFD) has been set up, the following patch can be used for invoking osgUtil::Optimizer() to finalize and optimize the scene graph: | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
</syntaxhighlight> | </syntaxhighlight> | ||