blob: 1b5a12110207fa2dece144dea6ff0419cc79c1ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB)
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
/***************************************************************************
** This file was generated by glgen version 0.1
** Command line was: glgen
**
** glgen is Copyright (C) 2012 Klaralvdalens Datakonsult AB (KDAB)
**
** This is an auto-generated file.
** Do not edit! All changes made to it will be lost.
**
****************************************************************************/
#ifndef QOPENGLVERSIONFUNCTIONFACTORY_H
#define QOPENGLVERSIONFUNCTIONFACTORY_H
#include <QtOpenGL/qtopenglglobal.h>
#include <QtOpenGL/qopenglversionprofile.h>
QT_BEGIN_NAMESPACE
class QAbstractOpenGLFunctions;
class QOpenGLContext;
class Q_OPENGL_EXPORT QOpenGLVersionFunctionsFactory
{
public:
static QAbstractOpenGLFunctions *get(const QOpenGLVersionProfile &versionProfile = QOpenGLVersionProfile(), QOpenGLContext *context = nullptr);
template<class TYPE>
static TYPE *get(QOpenGLContext *context = nullptr)
{
QOpenGLVersionProfile v = TYPE::versionProfile();
return static_cast<TYPE*>(get(v, context));
}
};
QT_END_NAMESPACE
#endif
|