summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2012-08-07 09:37:30 +0100
committerQt by Nokia <qt-info@nokia.com>2012-08-09 13:19:34 +0200
commitd1bb10d9b8f2d072dba8020e354326f91f5981f4 (patch)
tree5195b9f3ee81f52e2facca335b8423beb5c34fa2 /src/gui/kernel/qopenglcontext.h
parent5410299d945354cfe96729b6779fbfcbe2f4ae28 (diff)
OpenGL: Allow querying OpenGL extensions via the QOpenGLContext
Change-Id: Ia88470554bbfd2a56738dadfcafafe42a990382d Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel/qopenglcontext.h')
-rw-r--r--src/gui/kernel/qopenglcontext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext.h b/src/gui/kernel/qopenglcontext.h
index b9a47a54b8..2dd92c9992 100644
--- a/src/gui/kernel/qopenglcontext.h
+++ b/src/gui/kernel/qopenglcontext.h
@@ -129,6 +129,9 @@ public:
QOpenGLFunctions *functions() const;
+ QSet<QByteArray> extensions() const;
+ bool hasExtension(const QByteArray &extension) const;
+
Q_SIGNALS:
void aboutToBeDestroyed();