Re: [osg-users] determining new size of rendering window after a user resizing

2016-03-31 Thread David Knipp
Hi, if you are working under windows you can cast a window to GraphicsHandleWin32 as far as i know: osgViewer::ViewerBase::Windows wins; viewer->getWindows(wins); osgViewer::GraphicsHandleWin32* win32Window = dynamic_cast(wins[0]); if(win32Window) { // windows.h RECT r; GetWindo

Re: [osg-users] determining new size of rendering window after a user resizing

2016-03-31 Thread Robert Osfield
Hi Robert, >From the include/osgViewer/GraphicsWindow header there is the method: /** Get the window's position and size.*/ virtual void getWindowRectangle(int& x, int& y, int& width, int& height) { if (_traits.valid()) { x = _traits->x; y = _traits->y; width = _traits->width; hei

[osg-users] determining new size of rendering window after a user resizing

2016-03-31 Thread Robert Kiser
Hello All First, I apologize profusely if I am asking a newbie question with an obvious answer. I am a technical software developer w/ 30 years experience in other languages (FORTRAN, Assembler, VB.Net) but have only very recently been exposed to C++ and OSG. My question is: how (on a Windows