Added set/getRealizeOperation() to Viewer and CompositeViewer

This commit is contained in:
Robert Osfield
2007-01-28 17:11:21 +00:00
parent 25e4fd32ac
commit af6de09ab4
4 changed files with 54 additions and 9 deletions

View File

@@ -694,7 +694,17 @@ void CompositeViewer::realize()
citr != contexts.end();
++citr)
{
(*citr)->realize();
osg::GraphicsContext* gc = *citr;
gc->realize();
if (_realizeOperation.valid())
{
gc->makeCurrent();
(*_realizeOperation)(gc);
gc->releaseContext();
}
}
bool grabFocus = true;