Show
Ignore:
Timestamp:
03/31/15 18:23:43 (less than one hour ago)
Author:
robert
Message:

Introduced osg::Camera::resize(..) method and associated enum thus:

enum ResizeMask?
{

RESIZE_VIEWPORT=1,
RESIZE_ATTACHMENTS=2,
RESIZE_PROJECTIONMATRIX=4,
RESIZE_DEFAULT=RESIZE_VIEWPORT|RESIZE_ATTACHMENTS

};

/** Resize, to the specified width and height, the viewport, attachments and projection matrix according to the resizeMask provided.

  • Note, the adjustment of the projection matrix is done if the RESIZE_PROJECTIONMATRIX mask to set and according to the rules specified in the ProjectionResizePolicy?. */

void resize(int width, int height, int resizeMask=RESIZE_DEFAULT);

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;