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
14#ifndef QOPENGLVERSIONFUNCTIONFACTORY_H
15#define QOPENGLVERSIONFUNCTIONFACTORY_H
16
17#include <QtOpenGL/qtopenglglobal.h>
18#include <QtOpenGL/qopenglversionprofile.h>
19
20QT_BEGIN_NAMESPACE
21
22class QAbstractOpenGLFunctions;
23class QOpenGLContext;
24
25class Q_OPENGL_EXPORT QOpenGLVersionFunctionsFactory
26{
27public:
28 static QAbstractOpenGLFunctions *get(const QOpenGLVersionProfile &versionProfile = QOpenGLVersionProfile(), QOpenGLContext *context = nullptr);
29 template<class TYPE>
30 static TYPE *get(QOpenGLContext *context = nullptr)
31 {
32 QOpenGLVersionProfile v = TYPE::versionProfile();
33 return static_cast<TYPE*>(get(v, context));
34 }
35};
36
37QT_END_NAMESPACE
38
39#endif
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE QAbstractOpenGLFunctions * createFunctions(const QOpenGLVersionProfile &versionProfile)