Replaced Widget::GraphicsSubgraph with GraphicsSubgraphMap to allow finer control of when the rendering subgraphs are done.

This commit is contained in:
Robert Osfield
2014-05-28 10:06:14 +00:00
parent 6af9edf33b
commit 1fcb91900a
13 changed files with 83 additions and 31 deletions

View File

@@ -77,5 +77,10 @@ void Popup::createGraphicsImplementation()
style->setupDialogStateSet(getOrCreateStateSet());
style->setupClipStateSet(_extents, getOrCreateStateSet());
setGraphicsSubgraph(_transform.get());
// render before the subgraph
setGraphicsSubgraph(-1, _transform.get());
// render after the subgraph
setGraphicsSubgraph(1, style->createDepthSetPanel(_extents));
}