From 2bd7438d77c8544d263c51be432206970eae5ccf Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Sun, 28 Sep 2014 12:26:55 +0200 Subject: Give Item::layer documentation some much needed love. Change-Id: I31e038d961d3aa09a36db0c091c4e4910e395c2e Reviewed-by: Laszlo Agocs --- src/quick/items/qquickshadereffect.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/quick/items/qquickshadereffect.cpp') diff --git a/src/quick/items/qquickshadereffect.cpp b/src/quick/items/qquickshadereffect.cpp index fb5dac1080..0358495a3b 100644 --- a/src/quick/items/qquickshadereffect.cpp +++ b/src/quick/items/qquickshadereffect.cpp @@ -641,10 +641,34 @@ void QQuickShaderEffectCommon::propertyChanged(QQuickItem *item, int mappedId, corner. For non-linear vertex transformations, like page curl, you can specify a fine grid of vertices by specifying a \l mesh resolution. + \section1 ShaderEffect and Item Layers + + The ShaderEffect type can be combined with \l {Item Layers} {layered items}. + + \table + \row + \li \b {Layer with effect disabled} \inlineimage qml-shadereffect-nolayereffect.png + \li \b {Layer with effect enabled} \inlineimage qml-shadereffect-layereffect.png + \li \snippet qml/layerwitheffect.qml 1 + \endtable + + It is also possible to combine multiple layered items: + + \table + \row + \li \inlineimage qml-shadereffect-opacitymask.png + \li \snippet qml/opacitymask.qml 1 + \endtable + + The \l {Qt Graphical Effects} module contains several ready-made effects + for using with Qt Quick applications. + \note Scene Graph textures have origin in the top-left corner rather than bottom-left which is common in OpenGL. For information about the GLSL version being used, see \l QtQuick::OpenGLInfo. + + \sa {Item Layers} */ QQuickShaderEffect::QQuickShaderEffect(QQuickItem *parent) -- cgit v1.2.3