QOpenGLInformationService Class


Interface for a Qt3D OpenGL information service More...

Header: #include <QOpenGLInformationService>
qmake: QT += 3dcore
Inherits: QAbstractServiceProvider
Inherited By:

Public Functions

virtual QSurfaceFormat format() const = 0

Protected Functions

QOpenGLInformationService(const QString & description = QString())

Detailed Description

Interface for a Qt3D OpenGL information service

This is an interface class that should be subclassesd by providers of the OpenGL information service. The service can be used to query various properties of the underlying OpenGL implementation without having to worry about having a valid OpenGL context on the current thread.

Member Function Documentation

[protected] QOpenGLInformationService::QOpenGLInformationService(const QString & description = QString())

Creates an instance of QOpenGLInformationService, with a description for the new service. This constructor is protected so only subclasses can instantiate a QOpenGLInformationService object.

[pure virtual] QSurfaceFormat QOpenGLInformationService::format() const

Subclasses should override this function to return the QSurfaceFormat of the OpenGL context in use.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.