summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/bigscene-instanced-qml
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2015-11-03 10:29:17 +0100
committerAndy Nichols <andy.nichols@theqtcompany.com>2015-11-03 14:24:05 +0000
commit0df2906ff79d7d43c0a96dd47d6be433cf006db9 (patch)
tree52becca52c0f906829dfacf1af1238546d54d09e /examples/qt3d/bigscene-instanced-qml
parente35820a86b7fc61c8aafc266e9deb225b3d1c564 (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 'examples/qt3d/bigscene-instanced-qml')
-rw-r--r--examples/qt3d/bigscene-instanced-qml/main.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qt3d/bigscene-instanced-qml/main.qml b/examples/qt3d/bigscene-instanced-qml/main.qml
index c1ff7ff2f..699e8d305 100644
--- a/examples/qt3d/bigscene-instanced-qml/main.qml
+++ b/examples/qt3d/bigscene-instanced-qml/main.qml
@@ -72,9 +72,9 @@ Entity {
id: instancedPhongMaterial
effect: Effect {
techniques: Technique {
- openGLFilter {
- api: OpenGLFilter.Desktop
- profile: OpenGLFilter.Core
+ graphicsApiFilter {
+ api: GraphicsApiFilter.OpenGL
+ profile: GraphicsApiFilter.CoreProfile
minorVersion: 2
majorVersion: 3
}