Added window size event handler
This commit is contained in:
parent
31e526f253
commit
15afc29018
@ -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)) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user