On 18 Apr 2013, at 09:09, Till Oliver Knoll <[email protected]> wrote:

> So is OpenGL 3.x Core actually supposed to work with Qt 5? Or is this
> still work in progress?

It works fine, but the legacy QGL APIs don't help you much. Rough pseudo-code 
which works for me:

   QWindow *win = new QWindow
    win->setSurfaceType( OpenGLSurface );

    QSurfaceFormat format;
    format.setMajorVersion( 3 );
    format.setMinorVersion( 2 );
    format.setProfile( QSurfaceFormat::CoreProfile );

    win->setFormat( format );
    win0>create();

    QOpenGLContext* context = new QOpenGLContext;
    context->setFormat( format );
    context->create();

... make context current and start using QOpenGLShaderProgram, making glXXXXXX 
calls, etc

Regards,
James

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to