Re: [osg-users] how to suspend rendering context thread

2009-11-26 Thread Jakob Ruhe
Hi Forest. Your question fits better in a forum for MFC or Windows programming. You can use the Win32 API function GetForegroundWindow to see which window has the focus or you can use GetWindowPlacement to get the state about a specific window. You should also consider using "on-demand rendering"

[osg-users] how to suspend rendering context thread

2009-11-25 Thread forest
hi all, When I use osgMFCViewer, I create multiple rendering context,that's to say there are many HWND, each HWND is related to one Render thread ,so much CPU resource is taken up. This is what I want to do: When one viewport is maximazed, the others will be hidden ,so these hidden cont