1 | // Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "qopenglinformationservice_p.h" |
5 | #include "qopenglinformationservice_p_p.h" |
6 | |
7 | QT_BEGIN_NAMESPACE |
8 | |
9 | namespace Qt3DCore { |
10 | |
11 | |
12 | /* !\internal |
13 | \class Qt3DCore::QOpenGLInformationService |
14 | \inmodule Qt3DCore |
15 | \brief Interface for a Qt3D OpenGL information service |
16 | |
17 | This is an interface class that should be subclassesd by providers of the |
18 | OpenGL information service. The service can be used to query various properties |
19 | of the underlying OpenGL implementation without having to worry about |
20 | having a valid OpenGL context on the current thread. |
21 | */ |
22 | |
23 | /* |
24 | Creates an instance of QOpenGLInformationService, with a \a description for |
25 | the new service. This constructor is protected so only subclasses can |
26 | instantiate a QOpenGLInformationService object. |
27 | */ |
28 | QOpenGLInformationService::QOpenGLInformationService(const QString &description) |
29 | : QAbstractServiceProvider(*new QOpenGLInformationServicePrivate(description)) |
30 | { |
31 | } |
32 | |
33 | /* |
34 | \internal |
35 | */ |
36 | QOpenGLInformationService::QOpenGLInformationService(QOpenGLInformationServicePrivate &dd) |
37 | : QAbstractServiceProvider(dd) |
38 | { |
39 | } |
40 | |
41 | /* |
42 | \fn QSurfaceFormat Qt3DCore::QOpenGLInformationService::format() const |
43 | |
44 | Subclasses should override this function to return the QSurfaceFormat of the |
45 | OpenGL context in use. |
46 | */ |
47 | |
48 | } // namespace Qt3DCore |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #include "moc_qopenglinformationservice_p.cpp" |
53 | |