Show
Ignore:
Timestamp:
01/02/07 13:50:57 (8 years ago)
Author:
robert
Message:

Added support for getting all windows and hiding the cursor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp

    r5869 r5870  
    15811581    viewer.realize(); 
    15821582 
     1583    // switch off the cursor 
     1584    osgViewer::Viewer::Windows windows; 
     1585    viewer.getWindows(windows); 
     1586    for(osgViewer::Viewer::Windows::iterator itr = windows.begin(); 
     1587        itr != windows.end(); 
     1588        ++itr) 
     1589    { 
     1590        (*itr)->useCursor(false); 
     1591    } 
     1592 
    15831593    // todo for osgViewer - implement warp pointer 
    15841594    // viewer.requestWarpPointer(0.5f,0.5f);