Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglversionfunctionsfactory.h
Go to the documentation of this file.
1// Copyright (C) 2013 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** This file was generated by glgen version 0.1
5** Command line was: glgen
6**
7** glgen is Copyright (C) 2012 Klaralvdalens Datakonsult AB (KDAB)
8**
9** This is an auto-generated file.
10** Do not edit! All changes made to it will be lost.
11**
12****************************************************************************/
13// Qt-Security score:significant reason:default
14
15#ifndef QOPENGLVERSIONFUNCTIONFACTORY_H
16#define QOPENGLVERSIONFUNCTIONFACTORY_H
17
18#include <QtOpenGL/qtopenglglobal.h>
19#include <QtOpenGL/qopenglversionprofile.h>
20
21QT_BEGIN_NAMESPACE
22
23class QAbstractOpenGLFunctions;
24class QOpenGLContext;
25
26class Q_OPENGL_EXPORT QOpenGLVersionFunctionsFactory
27{
28public:
29 static QAbstractOpenGLFunctions *get(const QOpenGLVersionProfile &versionProfile = QOpenGLVersionProfile(), QOpenGLContext *context = nullptr);
30 template<class TYPE>
31 static TYPE *get(QOpenGLContext *context = nullptr)
32 {
33 QOpenGLVersionProfile v = TYPE::versionProfile();
34 return static_cast<TYPE*>(get(v, context));
35 }
36};
37
38QT_END_NAMESPACE
39
40#endif
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE QAbstractOpenGLFunctions * createFunctions(const QOpenGLVersionProfile &versionProfile)