[osg-users] AddSlave & removeSlave camera seem inconsistent
Bruce Clay
bclay1297 at gmail.com
Wed Apr 10 11:53:01 PDT 2019
I am trying to use the HUD sample code to do on screen list selection. The information in the list changes with each model loaded so a static HUD will not work.
addSlave takes in a osg::Camera instance and returns a bool. removeSlace takes in an integer presumably an index to a list of cameras.
I also have a HUD type of status bar across the bottom of the screen. When the user views multiple models, slave cameras are added and removed when the user is finished with the list also removes the status bar camera.
Is there a way to programmatically determine the index when a slave camera is added to insure the correct one is removed?
Thank you!
Cheers,
Bruce
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75810#75810
More information about the osg-users
mailing list