diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-22 10:49:28 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-29 10:25:24 +0200 |
commit | 6e28e8441b698c3397c2c78125c877f2e9867cb1 (patch) | |
tree | 1e3ad0e43cb775854835817cd04bdc8b5e047e15 /src/opengl/qgl_p.h | |
parent | aaa4a26f82f99fa8724841eba91bad029306e0ce (diff) |
Copy core GL functionality to QtGui with QGL -> QOpenGL naming.
Change-Id: Ibc989afa4a30dd184d41d1a1cd89f97196e48855
Reviewed-on: http://codereview.qt.nokia.com/3710
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index 58efc7f7fd..6f418a9818 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -61,11 +61,11 @@ #include "QtCore/qhash.h" #include "QtCore/qatomic.h" #include "QtWidgets/private/qwidget_p.h" -#include "QtGui/private/qguiglcontext_qpa_p.h" +#include "QtGui/private/qopenglcontext_p.h" #include "qcache.h" #include "qglpaintdevice_p.h" -#include <QtGui/QGuiGLContext> +#include <QtGui/QOpenGLContext> QT_BEGIN_NAMESPACE @@ -209,7 +209,7 @@ private: // Get the context that resources for "ctx" will transfer to once // "ctx" is destroyed. Returns null if nothing is sharing with ctx. -Q_OPENGL_EXPORT const QGLContext *qt_gl_transfer_context(const QGLContext *); +const QGLContext *qt_gl_transfer_context(const QGLContext *); // GL extension definitions class QGLExtensions { @@ -298,7 +298,7 @@ public: void syncGlState(); // Makes sure the GL context's state is what we think it is void swapRegion(const QRegion ®ion); - QGuiGLContext *guiGlContext; + QOpenGLContext *guiGlContext; void setupSharing(); QGLFormat glFormat; @@ -528,18 +528,18 @@ QGLTexture* QGLTextureCache::getTexture(QGLContext *ctx, qint64 key) return m_cache.object(cacheKey); } -extern Q_OPENGL_EXPORT QPaintEngine* qt_qgl_paint_engine(); +extern QPaintEngine* qt_qgl_paint_engine(); // Put a guard around a GL object identifier and its context. // When the context goes away, a shared context will be used // in its place. If there are no more shared contexts, then // the identifier is returned as zero - it is assumed that the // context destruction cleaned up the identifier in this case. -class Q_OPENGL_EXPORT QGLSharedResourceGuardBase : public QGLSharedResource +class QGLSharedResourceGuardBase : public QOpenGLSharedResource { public: QGLSharedResourceGuardBase(QGLContext *context, GLuint id) - : QGLSharedResource(context->contextHandle()->shareGroup()) + : QOpenGLSharedResource(context->contextHandle()->shareGroup()) , m_id(id) { } @@ -555,10 +555,10 @@ protected: m_id = 0; } - void freeResource(QGuiGLContext *context) + void freeResource(QOpenGLContext *context) { if (m_id) { - freeResource(QGLContext::fromGuiGLContext(context), m_id); + freeResource(QGLContext::fromOpenGLContext(context), m_id); } } |