[osg-users] wxwidgets and osg

spowers at gdrs.com spowers at gdrs.com
Tue Jul 8 11:03:23 PDT 2008

I believe it depends on where you call frame().
You can create a separate thread that will call frame() on its own timer
and will continue to render as wxWidgets is resizing. I havnt tested
this but it should work. The wx gui will not continue to render but the
OSG parts should.
I've done this for a MFC project in windows and the OSG parts of the
application continue to run when they are being resized.
I hope this helps!

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of James
Sent: Tuesday, July 08, 2008 1:31 PM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] wxwidgets and osg
I have been trying out osg with wxwidgets, specifically playing with the
osgViewerWX sample, and was wondering if it is possible
to somehow maintain rendering whilst the wxFrame is resized. At the
moment when the wxFrame is made bigger the rendering area
is not redrawn until the next idle event, meaning it looks like the app
has failed in someway (obviously it hasn't) until it is updated.
Would it be inefficient to render every resize event? Or maybe snapshot
the front buffer to create a image that is just resized (as
if the user is resizing they aren't interacting with the rendering
window, if so how?)?
Thank you for any help\comments, appologies if my terminology is wrong,
I'm a bit new to all this :-)  

James Dickson 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080708/1b9ba598/attachment-0003.htm>

More information about the osg-users mailing list