ColoredPoint2D Class

(QSGGeometry::ColoredPoint2D)

The QSGGeometry::ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color. 更多...

头文件: #include <ColoredPoint2D>
qmake: QT += quick

公有函数

void set(float x, float y, uchar red, uchar green, uchar blue, uchar alpha)

详细描述

The QSGGeometry::ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color.

成员函数

void ColoredPoint2D::set(float x, float y, uchar red, uchar green, uchar blue, uchar alpha)

Sets the position of the vertex to x and y and the color to red, green, blue, and alpha.