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 ) | 
| unsigned char | a | 
| unsigned char | b | 
| unsigned char | g | 
| unsigned char | r | 
| float | x | 
| float | y | 
The QSGGeometry::ColoredPoint2D struct is a convenience struct for accessing 2D Points with a color.
Sets the position of the vertex to x and y and the color to red , green , blue ,和 alpha .