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 // add the record camera path handler
viewer.addEventHandler(new osgViewer::RecordCameraPathHandler); viewer.addEventHandler(new osgViewer::RecordCameraPathHandler);
// add the window size toggle handler
viewer.addEventHandler(new osgViewer::WindowSizeHandler);
// obtain the vertical scale // obtain the vertical scale
float verticalScale = 1.0f; float verticalScale = 1.0f;
while(arguments.read("-v",verticalScale)) {} while(arguments.read("-v",verticalScale)) {}