summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qopenglcontext_platform.h')
-rw-r--r--src/gui/kernel/qopenglcontext_platform.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/kernel/qopenglcontext_platform.h b/src/gui/kernel/qopenglcontext_platform.h
index 1b03325c7f..c498c19437 100644
--- a/src/gui/kernel/qopenglcontext_platform.h
+++ b/src/gui/kernel/qopenglcontext_platform.h
@@ -64,12 +64,12 @@ typedef void *NSOpenGLContext;
QT_BEGIN_NAMESPACE
-namespace QPlatformInterface {
+namespace QNativeInterface {
#if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
struct Q_GUI_EXPORT QCocoaGLContext
{
- QT_DECLARE_PLATFORM_INTERFACE(QCocoaGLContext)
+ QT_DECLARE_NATIVE_INTERFACE(QCocoaGLContext)
static QOpenGLContext *fromNative(QT_IGNORE_DEPRECATIONS(NSOpenGLContext) *, QOpenGLContext *shareContext = nullptr);
virtual QT_IGNORE_DEPRECATIONS(NSOpenGLContext) *nativeContext() const = 0;
};
@@ -78,7 +78,7 @@ struct Q_GUI_EXPORT QCocoaGLContext
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
struct Q_GUI_EXPORT QWGLContext
{
- QT_DECLARE_PLATFORM_INTERFACE(QWGLContext)
+ QT_DECLARE_NATIVE_INTERFACE(QWGLContext)
static HMODULE openGLModuleHandle();
static QOpenGLContext *fromNative(HGLRC context, HWND window, QOpenGLContext *shareContext = nullptr);
virtual HGLRC nativeContext() const = 0;
@@ -88,7 +88,7 @@ struct Q_GUI_EXPORT QWGLContext
#if defined(Q_OS_LINUX) || defined(Q_CLANG_QDOC)
struct Q_GUI_EXPORT QGLXContext
{
- QT_DECLARE_PLATFORM_INTERFACE(QGLXContext)
+ QT_DECLARE_NATIVE_INTERFACE(QGLXContext)
static QOpenGLContext *fromNative(GLXContext configBasedContext, QOpenGLContext *shareContext = nullptr);
static QOpenGLContext *fromNative(GLXContext visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr);
virtual GLXContext nativeContext() const = 0;
@@ -98,13 +98,13 @@ struct Q_GUI_EXPORT QGLXContext
#if QT_CONFIG(egl)
struct Q_GUI_EXPORT QEGLContext
{
- QT_DECLARE_PLATFORM_INTERFACE(QEGLContext)
+ QT_DECLARE_NATIVE_INTERFACE(QEGLContext)
static QOpenGLContext *fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr);
virtual EGLContext nativeContext() const = 0;
};
#endif
-} // QPlatformInterface
+} // QNativeInterface
QT_END_NAMESPACE