clearifying comments

This commit is contained in:
Uwe Rathmann 2024-09-23 15:38:12 +02:00
parent cc455dff5a
commit 591fc55479

View File

@ -36,15 +36,15 @@ class QSK_EXPORT QskFillNode : public QSGGeometryNode
Colors might be defined in the material ( QskGradientMaterial,
QSGFlatColorMaterial ) or attached to each point ( QSGVertexColorMaterial ).
The main advantage of using colored points is, that the material becomes
independent of the coloring and the scene graph is able to batch the nodes
Having colored points makes the material independent of the coloring
and the scene graph is able to batch the geometries
( https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph.html ).
However adding the color information for each point increases the memory
footprint.
Having the colors in the material needs less memory and avoids updates
of the geometry only because of recoloring.
The default setting is to use colored points where possible. Note, that
this is what is also done in the Qt/Quick code.
this is what is also done in the Qt/Quick classes.
*/
PreferColoredGeometry = 1
};