From 15afc29018906cbcb65fd2ede620e11bd29e8992 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 1 Apr 2010 21:04:36 +0000 Subject: [PATCH] Added window size event handler --- examples/osgterrain/osgterrain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/osgterrain/osgterrain.cpp b/examples/osgterrain/osgterrain.cpp index dd52dac85..c97a0510b 100644 --- a/examples/osgterrain/osgterrain.cpp +++ b/examples/osgterrain/osgterrain.cpp @@ -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)) {}