clearifying comments
This commit is contained in:
parent
cc455dff5a
commit
591fc55479
|
@ -36,15 +36,15 @@ class QSK_EXPORT QskFillNode : public QSGGeometryNode
|
||||||
Colors might be defined in the material ( QskGradientMaterial,
|
Colors might be defined in the material ( QskGradientMaterial,
|
||||||
QSGFlatColorMaterial ) or attached to each point ( QSGVertexColorMaterial ).
|
QSGFlatColorMaterial ) or attached to each point ( QSGVertexColorMaterial ).
|
||||||
|
|
||||||
The main advantage of using colored points is, that the material becomes
|
Having colored points makes the material independent of the coloring
|
||||||
independent of the coloring and the scene graph is able to batch the nodes
|
and the scene graph is able to batch the geometries
|
||||||
( https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph.html ).
|
( https://doc.qt.io/qt-6/qtquick-visualcanvas-scenegraph.html ).
|
||||||
|
|
||||||
However adding the color information for each point increases the memory
|
Having the colors in the material needs less memory and avoids updates
|
||||||
footprint.
|
of the geometry only because of recoloring.
|
||||||
|
|
||||||
The default setting is to use colored points where possible. Note, that
|
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
|
PreferColoredGeometry = 1
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue