Hi,
I use this to complie "osgviewerQt eaxmple".But it show nothing...
The main code:
int main( int argc, char** argv )
{
osg::ArgumentParser arguments(&argc, argv);
osgViewer::ViewerBase::ThreadingModel threadingModel =
osgViewer::ViewerBase::CullDrawThreadPerContext;
while (arguments.read("--SingleThreaded")) threadingModel =
osgViewer::ViewerBase::SingleThreaded;
while (arguments.read("--CullDrawThreadPerContext")) threadingModel =
osgViewer::ViewerBase::CullDrawThreadPerContext;
while (arguments.read("--DrawThreadPerContext")) threadingModel =
osgViewer::ViewerBase:rawThreadPerContext;
while (arguments.read("--CullThreadPerCameraDrawThreadPerContext"))
threadingModel = osgViewer::ViewerBase::CullThreadPerCameraDrawThreadPerContext;
QApplication app(argc, argv);
ViewerWidget* viewWidget = new ViewerWidget(threadingModel);
viewWidget->setGeometry( 100, 100, 800, 600 );
viewWidget->show();
return app.exec();
}
...
so I debug it ,it shows that when it comes to " viewWidget->setGeometry(
100, 100, 800, 600 );" ,it stopped show..the cpu show 40% in use..
what is wrong??
Thank you!
Cheers,
xia
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=53317#53317
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org