13 : m_geometry(
QSGGeometry::defaultAttributes_ColoredPoint2D(), 4)
19#ifdef QSG_RUNTIME_DESCRIPTION
41 if (
color != m_color) {
45 for (
int i = 0;
i < 4; ++
i) {
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
void setRect(const QRectF &rect) override
Sets the rectangle of this rect node to rect.
QColor color() const override
Returns the color of this rectangle.
QSGDefaultRectangleNode()
QRectF rect() const override
Returns the rectangle that this rect node covers.
void setColor(const QColor &color) override
Sets the color of this rectangle to color.
void setMaterial(QSGMaterial *material)
Sets the material of this geometry node to material.
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
ColoredPoint2D * vertexDataAsColoredPoint2D()
Convenience function to access the vertex data as a mutable array of QSGGeometry::ColoredPoint2D.
static void updateColoredRectGeometry(QSGGeometry *g, const QRectF &rect)
Updates the geometry g with the coordinates in rect.
void markDirty(DirtyState bits)
Notifies all connected renderers that the node has dirty bits.
Combined button and popup list for selecting options.
int qRound(qfloat16 d) noexcept
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
void qsgnode_set_description(QSGNode *node, const QString &description)
QLatin1StringView QLatin1String
The QSGGeometry::ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color.