Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:12:18

0001 // Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB)
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 /***************************************************************************
0004 ** This file was generated by glgen version 0.1
0005 ** Command line was: glgen
0006 **
0007 ** glgen is Copyright (C) 2012 Klaralvdalens Datakonsult AB (KDAB)
0008 **
0009 ** This is an auto-generated file.
0010 ** Do not edit! All changes made to it will be lost.
0011 **
0012 ****************************************************************************/
0013 
0014 #ifndef QOPENGLVERSIONFUNCTIONFACTORY_H
0015 #define QOPENGLVERSIONFUNCTIONFACTORY_H
0016 
0017 #include <QtOpenGL/qtopenglglobal.h>
0018 #include <QtOpenGL/qopenglversionprofile.h>
0019 
0020 QT_BEGIN_NAMESPACE
0021 
0022 class QAbstractOpenGLFunctions;
0023 class QOpenGLContext;
0024 
0025 class Q_OPENGL_EXPORT QOpenGLVersionFunctionsFactory
0026 {
0027 public:
0028     static QAbstractOpenGLFunctions *get(const QOpenGLVersionProfile &versionProfile = QOpenGLVersionProfile(), QOpenGLContext *context = nullptr);
0029     template<class TYPE>
0030     static TYPE *get(QOpenGLContext *context = nullptr)
0031     {
0032         QOpenGLVersionProfile v = TYPE::versionProfile();
0033         return static_cast<TYPE*>(get(v, context));
0034     }
0035 };
0036 
0037 QT_END_NAMESPACE
0038 
0039 #endif