Show
Ignore:
Timestamp:
03/31/15 18:23:43 (103 minutes 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/osgPlugins/RestHttpDevice/RestHttpDevice.hpp

    r13247 r13429  
    170170 
    171171     
    172     virtual void checkEvents() 
     172    virtual bool checkEvents() 
    173173    { 
    174174        if ((fabs(_currentMouseX - _targetMouseY) > 0.1f) || (fabs(_currentMouseY - _targetMouseY) > 0.1)) 
     
    179179            getEventQueue()->mouseMotion(_currentMouseX, _currentMouseY, getEventQueue()->getTime()); 
    180180        } 
     181        return !(getEventQueue()->empty()); 
    181182    } 
    182183