OpenGL hadware overlay

孤街醉人 提交于 2019-12-12 00:42:58

问题


How to make a hardware overlay in Qt 5.1?

This is what I have so far:

QGLFormat fmt;
fmt.setSamples(16);
fmt.setOverlay(true);

MainWidget w(fmt);
w.show();

////////////////////////////////////////////////////////////////////////////////

MainWidget::MainWidget(const QGLFormat &format, QWidget *parent)
: QGLWidget(format, parent)
{
    qDebug() << format().hasOverlay() ?
            "Hardware overlay is supported" : "No hardware overlay support";
    qDebug() << "OpenGL " +
        QString::number(this->format().majorVersion()) + "." +
        QString::number(this->format().minorVersion());
}

But it always returns false :(
OpenGL version is 4.3
Video card is GeForce GT 650M


回答1:


Hardware Overlays are not a standard feature. No consumer grade GPU supports them (well, their hardware could, but the drivers don't). You need a Quadro or a FireGL GPU for hardware overlays to become available.



来源:https://stackoverflow.com/questions/18200763/opengl-hadware-overlay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!