Show
Ignore:
Timestamp:
09/01/14 21:13:35 (12 hours ago)
Author:
robert
Message:

Added DragCallback? class to help dialog dragging support.
Introduced a new Widget::computeExtentsPositionInLocalCoordinates() method that intersects with a ray through mouse pointer and the extents of the widget.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowIOS.mm

    r13277 r13376  
    728728    _viewContentScaleFactor = -1.0f; 
    729729    _valid = _initialized = true; 
     730 
     731    // make sure the event queue has the correct window rectangle size and input range 
     732    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    730733} 
    731734 
     
    890893    // IOSs origin is top/left: 
    891894    getEventQueue()->getCurrentEventState()->setMouseYOrientation(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); 
     895 
     896    // make sure the event queue has the correct window rectangle size and input range 
     897    getEventQueue()->syncWindowRectangleWithGraphcisContext(); 
    892898     
    893899    _valid = _initialized = _realized = true;