Hello Rick,
I noticed that there is:
osgViewer::Viewer->getCamera()->setPostDrawCallback()
but there is only one (implied by a set* rather than add*). Any way to
have multiple ones?
You could create a CompositeDrawCallback class, which would be an
osg::Camera::DrawCallback, would have a vector osg
osg::Camera::DrawCallbacks, and in its operator() would call the
callbacks' operator() methods one by one.
I know that there are probably new ways to do all of this stuff, add
HUD's, new ways to handle the keyboard and mouse and everything else. I
am just trying to refactor what I have rather than re-writing the whole
darn thing.
That's perfectly normal. Just be prepared to look around (generating the
doxygen from the source is a great tool - it's unfortunately not up to
date on the OSG web site).
As a side note, you can also do a HUD with a post-draw camera added as a
child to your main camera - so you could have multiple post-draw cameras
as children of the main camera. That would probably scale better than
post-draw callbacks. See the osghud example.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org