[osg-users] How to resize/move existing OSG window dynamically?

Mike Greene mgreene at hiwaay.net
Thu May 30 12:36:45 PDT 2019


Hi,

I have an example where I create an OSG window. I need to be able to move or resize it after creation through code. I have tried something like this:

 
Code:

while (!viewer->done()) {
		viewer->frame();

if (bConditionMet) viewer->getEventQueue()->windowResize(newX, newY, newWidth, newHeight);	
}




But this seems to have no effect. Do I need to reset the traits on the graphicsContext?

Thank you!

Cheers,
Mike[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76156#76156







More information about the osg-users mailing list