[osg-submissions] Changing the keys for StateSetManipulator
Jean-Sébastien Guay
jean-sebastien.guay at cm-labs.com
Tue Mar 4 09:42:09 PST 2008
Hello,
I changed osgGA::StateSetManipulator to mirror the
osgViewer::StatsHandler and other handlers which allow you to change the
key(s) you would press to get them to do something. Pretty simple change
but useful in our context and possibly in others too.
Also attached is a modified osgViewer which demonstrates that it works.
The StateSetManipulator functions are remapped to F1-F4. It also
demonstrates that in the 'h' help, the Fn function keys get displayed
incorrectly, but that's a fix for another time. :-)
Note that I didn't know what to do about the #if
COMPILE_TEXENVFILTER_USAGE functionality, which seems like a relic from
the past (based on the fact that it used the 'm' key which is now the
threading mode). You can either just put the code back to defer a
decision to later, or leave it as it is if you know it's not used
anymore (and will not be in the foreseeable future).
Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.guay at cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StateSetManipulator.zip
Type: application/x-zip-compressed
Size: 5191 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080304/073a7267/attachment.bin
More information about the osg-submissions
mailing list