Added window size event handler

This commit is contained in:
Robert Osfield 2010-04-01 21:04:36 +00:00
parent 31e526f253
commit 15afc29018

View File

@ -168,6 +168,9 @@ int main(int argc, char** argv)
// add the record camera path handler
viewer.addEventHandler(new osgViewer::RecordCameraPathHandler);
// add the window size toggle handler
viewer.addEventHandler(new osgViewer::WindowSizeHandler);
// obtain the vertical scale
float verticalScale = 1.0f;
while(arguments.read("-v",verticalScale)) {}