<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 18 Apr 2013, at 09:09, Till Oliver Knoll <<a href="mailto:till.oliver.knoll@gmail.com">till.oliver.knoll@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">So is OpenGL 3.x Core actually supposed to work with Qt 5? Or is this</span><br style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">still work in progress?</span><br style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "></blockquote></div><br><div>It works fine, but the legacy QGL APIs don't help you much. Rough pseudo-code which works for me:</div><div><br></div><div>   QWindow *win = new QWindow</div><div><div>    win->setSurfaceType( OpenGLSurface );</div><div><br></div><div>    QSurfaceFormat format;</div><div>    format.setMajorVersion( 3 );</div><div>    format.setMinorVersion( 2 );</div><div>    format.setProfile( QSurfaceFormat::CoreProfile );</div><div><br></div><div>    win->setFormat( format );</div><div>    win0>create();</div><div><br></div><div>    QOpenGLContext* context = new QOpenGLContext;</div><div>    context->setFormat( format );</div><div>    context->create();</div></div><div><br></div><div>... make context current and start using QOpenGLShaderProgram, making glXXXXXX calls, etc</div><div><br></div><div>Regards,</div><div>James</div><div><br></div></body></html>