Hi Renan,
> I begun reading a thread by Guy in which he talked about disabling
> mouse cursor, and so I did it: I've instantiated an
> osgViewer::GraphicsWindow object, gw, and used gw.useCursor(false), but
> nothing happened. I've also tried some other operations, like resizing
> the window, etc, but none of them worked. What's missing?
I guess you need to act on the GraphicsWindow which is currently active
in your osgViewer for it to have an effect... It seems from your message
that you're just instantiating a GraphicsWindow (which will not be
assigned to any viewer) and then doing something on it - that won't have
any visible effect.
Something like:
osgViewer::GraphicsWindow* gw =
dynamic_cast<osgViewer::GraphicsWindow*>(viewer.getCamera()->getGraphicsContext());
gw->useCursor(false);
(adapt to your actual viewer setup...)
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