lexar wrote:
> Hi folks,
> 
> Unfortunately this is not an answer, but a similar question:
> 
> I'm also playing with Qt integrated OSG (as the osgViewQt suggested) and ask 
> me, how to modify the scene-graph in safe way? Cause there is no explicit 
> rendering loop (as mentioned in many examples):
> 
> Code:
> while( !viewer.done() )
> {
> viewer.sync();
> viewer.update();
> 
> modify_scene_graph();
> 
> viewer.frame();
> }
> 
> 
> 
> But just a single Viewer::frame() call in the overridden QGLWidget::paintGL().
> 
> Thus: what is the right way to update the scene graph for this case ?
> 
> Thanks & regards,
> lexar


I believe QApplication::exec() is just a helper that's running the loop the 
following way

while (true) { QApplication::processEvents(); }

You may want to do something after processEvents()...

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to