Hi folks,
imagine I have a class derived from osgViewer::Viewer.
No I need the correct osg::State to apply something.
Where to get it from?
1. One solution could be:
dynamic_cast<osgViewer::Renderer*>(getCamera()->getRenderer())->getSceneView(0)->getState();
however this state seems not to be initialized and I
have manually to call the initializeExtensionProcs()
method. And this seems not to be elegant solution.
2. Second solution could be:
_currentContext->getState();
however _currentContext seems to be NULL during the
run of osgViewer::Viewer.
Hence where to get the correct state from? I do not
have any SceneView or similar things defined, just the
customized viewer.
Best regards,
Art
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org