improve docs of QSGGeometry::set[Vertex|Index]DataPattern
authorGunnar Sletta <gunnar.sletta@digia.com>
Thu, 16 May 2013 07:56:01 +0000 (09:56 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 16 May 2013 16:16:05 +0000 (18:16 +0200)
Change-Id: I6ca0d8549891302cc9d71bdfac11704752caaf60
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/quick/scenegraph/coreapi/qsggeometry.cpp

index a82c857..7f09af4 100644 (file)
@@ -705,7 +705,8 @@ void QSGGeometry::updateTexturedRectGeometry(QSGGeometry *g, const QRectF &rect,
 
     The default is AlwaysUploadPattern. When set to anything other than
     the default, the user must call markIndexDataDirty() after changing
-    the index data.
+    the index data, in addition to calling QSGNode::markDirty() with
+    QSGNode::DirtyGeometry.
  */
 
 void QSGGeometry::setIndexDataPattern(DataPattern p)
@@ -728,7 +729,8 @@ void QSGGeometry::setIndexDataPattern(DataPattern p)
 
     The default is AlwaysUploadPattern. When set to anything other than
     the default, the user must call markVertexDataDirty() after changing
-    the vertex data.
+    the vertex data, in addition to calling QSGNode::markDirty() with
+    QSGNode::DirtyGeometry.
  */
 
 void QSGGeometry::setVertexDataPattern(DataPattern p)