-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Martz wrote:
> osgViewer doesn't expose SceneView, even though it uses it under the hood.
> So, if you have an osgViewer-based app, you need another way to get the
> contextID.
> 

You can get to the SceneView(s) in osgViewer.
untested:
Renderer* renderer = dynamic_cast<Renderer>(viewer->getCamera()->getRenderer());
SceneView* sv0 = renderer->getSceneView(0);

...
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHYh83eDhWHdXrDRURAoULAKDbeDe1ow+oWDchQIHZkHdVJLJGogCgjRjT
CEg9B4xtFT7J56r40cnWpxQ=
=Q6hR
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to