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,
|
||||
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
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user