[osg-users] How to hide mouse cursor?
Anatoly Dovzhik
dovzhik.anatoly at gmail.com
Thu Mar 28 06:40:52 PDT 2019
Hi. I wanna hide my mouse (commented in main function) but it doesn't work. What do i do wrong?
here's my main:
Code:
int main()
{
osg::Node *scene = osgDB::readNodeFile("../resourses/lz.osg");
osgViewer::Viewer *viewer = new osgViewer::Viewer();
//DON'T WORK
osgViewer::Viewer::Windows windows;
viewer->getWindows(windows);
for(auto &window : windows) {
window->useCursor(false);
window->setCursor(osgViewer::GraphicsWindow::NoCursor);
}
viewer->setSceneData(scene);
return viewer->run();
}
...
Thank you!
Cheers,
Anatoly
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75744#75744
More information about the osg-users
mailing list