I have an update, using : osgViewer::ViewerBase::Windows windows;
viewer.getWindows(windows); for (osgViewer::ViewerBase::Windows::iterator itr = windows.begin(); itr != windows.end(); ++itr) { //(*itr)->useCursor(false); (*itr)->setCursor(osgViewer::GraphicsWindow::MouseCursor::NoCursor); } Instead of setting useCursor(false) works, the cursor is invisible. On Fri, Jun 12, 2009 at 12:23 PM, Serge Lages <serge.la...@gmail.com> wrote: > Hi all, > > Currently (the SVN version of OSG), hidding the cursor under Windows has no > effect. Setting cursor to false on the traits or making something like : > > osgViewer::ViewerBase::Windows windows; > > viewer.getWindows(windows); > for (osgViewer::ViewerBase::Windows::iterator itr = windows.begin(); itr != > windows.end(); ++itr) > { > (*itr)->useCursor(false); > } > > Doesn't work, I always see the cursor... > Any idea on which modification has break things ? The same code was working > for me some weeks ago, but I can't tell which revision it was... > > Thanks ! > > Best regards, > > -- > Serge Lages > http://www.tharsis-software.com > -- Serge Lages http://www.tharsis-software.com
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org