diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-11 14:49:12 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-13 09:22:16 +0000 |
commit | e188a3d864a5310bf18c3ad759a12560013deb64 (patch) | |
tree | 14be7dbedfc604833ad5e6e2abdcef7573e9cb95 /tests/auto/quick/qquickshadereffect | |
parent | 05605d89f9db80bb748c16ea19c566ab0995027e (diff) |
Prefix GL-specific shader effect code
Rename the C++ sources and classes. The QML type name remains the same.
No changes in functionality.
The shader effect, node, material (and uniform animator and particles and
bits and pieces here and there...) are highly interconnected and do not
follow the usual design practices for Quick and the scenegraph and the
adaptation layer. Therefore while we aim for keeping full compatibility
for GL apps, other backends will likely get a different ShaderEffect item
implementation.
The C++ class QQuickShaderEffect itself is currently a dummy with an
unchanged API. It is not in use for now but forms the basis for the
implementation for other backends. This will be covered in future commits.
Change-Id: Ia39ce4b303f8f33e2f241d11e35fa62423e43127
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qquickshadereffect')
-rw-r--r-- | tests/auto/quick/qquickshadereffect/tst_qquickshadereffect.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickshadereffect/tst_qquickshadereffect.cpp b/tests/auto/quick/qquickshadereffect/tst_qquickshadereffect.cpp index d0e718fb91..36c25ae78e 100644 --- a/tests/auto/quick/qquickshadereffect/tst_qquickshadereffect.cpp +++ b/tests/auto/quick/qquickshadereffect/tst_qquickshadereffect.cpp @@ -30,13 +30,12 @@ #include <QList> #include <QByteArray> -#include <private/qquickshadereffect_p.h> - +#include <private/qquickopenglshadereffect_p.h> +#include <QMatrix4x4> #include <QtQuick/QQuickView> #include "../../shared/util.h" - -class TestShaderEffect : public QQuickShaderEffect +class TestShaderEffect : public QQuickOpenGLShaderEffect { Q_OBJECT Q_PROPERTY(QVariant source READ dummyRead NOTIFY dummyChanged) |