summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoanativeinterface.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno@webkit.org>2012-11-23 10:52:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-23 17:04:00 +0100
commit92724e533d13f56d359122d7d83ddc2316a75ef8 (patch)
tree91a46c2e70f0c328c111668412243301ceaaaa8f /src/plugins/platforms/cocoa/qcocoanativeinterface.h
parent7120cf16d21923ecbae37c17c071eca2e7f891ab (diff)
Add nsOpenGLContextForContext to QCocoaNativeInterface.
This change enables receiving the native NSOpenGLContext that is used by a QOpenGLContext. This clearly is non-public api that is only meant to be used as a last resort for cases where it is really necessary to get hold of a native context object. Change-Id: Iea7c6abb458acc7aa15926052673270d25d1d9d1 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoanativeinterface.h')
-rw-r--r--src/plugins/platforms/cocoa/qcocoanativeinterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoanativeinterface.h b/src/plugins/platforms/cocoa/qcocoanativeinterface.h
index e4b52b9454..70ec497309 100644
--- a/src/plugins/platforms/cocoa/qcocoanativeinterface.h
+++ b/src/plugins/platforms/cocoa/qcocoanativeinterface.h
@@ -60,6 +60,7 @@ public:
void *nativeResourceForWindow(const QByteArray &resourceString, QWindow *window);
static void *cglContextForContext(QOpenGLContext *context);
+ static void *nsOpenGLContextForContext(QOpenGLContext* context);
public Q_SLOTS:
void onAppFocusWindowChanged(QWindow *window);