diff options
author | Andy Nichols <andy.nichols@theqtcompany.com> | 2015-11-03 10:29:17 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@theqtcompany.com> | 2015-11-03 14:24:05 +0000 |
commit | 0df2906ff79d7d43c0a96dd47d6be433cf006db9 (patch) | |
tree | 52becca52c0f906829dfacf1af1238546d54d09e /src/render/backend | |
parent | e35820a86b7fc61c8aafc266e9deb225b3d1c564 (diff) |
Rename QOpenGLFilter to QGraphicsApiFilter
This API change is part of an effort to remove anything specific to one
graphics API (in this case OpenGL) from the public APIs. In addition to
the name of the class being changed, the QGraphicsApiFilter::Api has
been refactored to reference the Graphics API, rather than an OpenGL
API. Now this list includes OpenGL, and OpenGLES, but could also include
Vulkan, DirectX, or any other graphics rendering API we wish to support
in the future. Right now the properties in this class are still
reflective of the OpenGL APIs, and may need to be extended with other
properties in the future for other rendering technologies.
The QGraphicsApiFilter::Profile enum has also been changed to be more
more clear. So for now there are enums NoProfile, CoreProfile, and
CompatibilityProfile.
Task-number:QTBUG-49078
Change-Id: Ib5f9c3b7adee5badec6bce8a12b23683eb43b4cb
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/backend')
-rw-r--r-- | src/render/backend/renderer.cpp | 2 | ||||
-rw-r--r-- | src/render/backend/renderer_p.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/render/backend/renderer.cpp b/src/render/backend/renderer.cpp index 4a2a62f27..78aec56ed 100644 --- a/src/render/backend/renderer.cpp +++ b/src/render/backend/renderer.cpp @@ -1079,7 +1079,7 @@ QList<QMouseEvent> Renderer::pendingPickingEvents() const return m_pickEventFilter->pendingEvents(); } -QOpenGLFilter *Renderer::contextInfo() const +QGraphicsApiFilter *Renderer::contextInfo() const { return m_graphicsContext->contextInfo(); } diff --git a/src/render/backend/renderer_p.h b/src/render/backend/renderer_p.h index 7793922f7..c9781586c 100644 --- a/src/render/backend/renderer_p.h +++ b/src/render/backend/renderer_p.h @@ -89,7 +89,7 @@ class QShaderProgram; class QMesh; class QRenderPass; class QAbstractShapeMesh; -class QOpenGLFilter; +class QGraphicsApiFilter; class AbstractSceneParser; namespace Render { @@ -213,7 +213,7 @@ public: QList<QMouseEvent> pendingPickingEvents() const; - QOpenGLFilter *contextInfo() const; + QGraphicsApiFilter *contextInfo() const; void setSurface(QSurface *s); inline QSurface *surface() const { return m_surface; } |