[Interest] [Qt3D] Get OpenGL Information
Andy
asmaloney at gmail.com
Fri Feb 5 23:50:05 CET 2016
I have something working on Mac OS X that I'm trying to get working on
Windows. I would like access to the OpenGL context so I can see what I'm
actually getting when I try to set the format.
I have a QWindow subclass and I'm doing this (same as the examples I think):
setSurfaceType( QSurface::OpenGLSurface );
QSurfaceFormat format;
if ( QOpenGLContext::openGLModuleType() == QOpenGLContext::LibGL )
{
format.setVersion( 4, 3 );
format.setProfile( QSurfaceFormat::CoreProfile );
}
format.setDepthBufferSize( 24 );
format.setSamples( 4 );
format.setStencilBufferSize( 8 );
setFormat( format );
create();
The docs for QWindow::format() state explicitly that the OpenGL information
may not be updated in create(), so use the QOpenGLContext's format() to get
this information instead.
How do I get access to my subclassed QWindow's QOpenGLContext using Qt3D?
I see a QOpenGLInformationService class that I think provides the info I
want, but it's private.
Thanks!
---
Andy Maloney // https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160205/99d85ce8/attachment.html>
More information about the Interest
mailing list