/**************************************************************************** ** ** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB) ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtOpenGL module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** 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 #include QT_BEGIN_NAMESPACE class QAbstractOpenGLFunctions; class QOpenGLContext; class Q_OPENGL_EXPORT QOpenGLVersionFunctionsFactory { public: static QAbstractOpenGLFunctions *get(const QOpenGLVersionProfile &versionProfile = QOpenGLVersionProfile(), QOpenGLContext *context = nullptr); template static TYPE *get(QOpenGLContext *context = nullptr) { QOpenGLVersionProfile v = TYPE::versionProfile(); return static_cast(get(v, context)); } }; QT_END_NAMESPACE #endif