aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util/qsgimagenode.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2018-02-13 11:05:22 +0100
committerMartin Smith <martin.smith@qt.io>2018-02-14 07:45:23 +0000
commit874cd47ae427e6f08a6e362f28af5038a2bc9872 (patch)
treeaa5dade6dd422c58a434681d12f9630339eec87c /src/quick/scenegraph/util/qsgimagenode.cpp
parentb704faaa45d3e3ca8bc7ce11aeb1e533a9563a0f (diff)
doc: Add documentation for undocumented things
There were several undocumented elements in the API that clang-qdoc warned about. These are now documented, although original authors might want to contribute better descriptions. A few uses of a macro "qdoc" were corrected to Q_CLANG_QDOC. Change-Id: I4e1d4c5f3266a334d7286e55ed1b113319de2273 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/scenegraph/util/qsgimagenode.cpp')
-rw-r--r--src/quick/scenegraph/util/qsgimagenode.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/quick/scenegraph/util/qsgimagenode.cpp b/src/quick/scenegraph/util/qsgimagenode.cpp
index c03c91d1cb..b154023247 100644
--- a/src/quick/scenegraph/util/qsgimagenode.cpp
+++ b/src/quick/scenegraph/util/qsgimagenode.cpp
@@ -168,7 +168,7 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \fn QSGImageNode::TextureCoordinatesTransformMode textureCoordinatesTransform() const
+ \fn QSGImageNode::TextureCoordinatesTransformMode QSGImageNode::textureCoordinatesTransform() const
Returns the mode used to generate texture coordinates for this node.
*/
@@ -187,6 +187,15 @@ QT_BEGIN_NAMESPACE
\return \c true if the node takes ownership of the texture; otherwise \c false.
*/
+/*!
+ Updates the geometry \a g with the \a texture, the coordinates
+ in \a rect, and the texture coordinates from \a sourceRect.
+
+ \a g is assumed to be a triangle strip of four vertices of type
+ QSGGeometry::TexturedPoint2D.
+
+ \a texCoordMode is used for normalizing the \a sourceRect.
+ */
void QSGImageNode::rebuildGeometry(QSGGeometry *g,
QSGTexture *texture,
const QRectF &rect,