Hi, I use ubuntu 12.10-x64 with nvidia drivers 304.51 under double GTX 670.
Code:
osg::ref_ptr<osg::GraphicsContext::Traits> traits = new
osg::GraphicsContext::Traits(osg::DisplaySettings::instance().get());
traits->width = ui->GLWidget_2->width();
traits->height = ui->GLWidget_2->height();
traits->doubleBuffer = true;
traits->vsync=true;
osgQt::GraphicsWindowQt* graphicsWindow = new
osgQt::GraphicsWindowQt(traits.get());
QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget(graphicsWindow->getGLWidget());
ui->GLWidget_2->setLayout(layout);
Thank you!
Cheers,
Roman
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50688#50688
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org