ColoredPoint2D Struct

struct QSGGeometry::ColoredPoint2D

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

Public Functions

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

Public Variables

unsigned char a
unsigned char b
unsigned char g
unsigned char r
float x
float y

Detailed Description

Member Function Documentation

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.

Member Variable Documentation

unsigned char ColoredPoint2D::a

unsigned char ColoredPoint2D::b

unsigned char ColoredPoint2D::g

unsigned char ColoredPoint2D::r

float ColoredPoint2D::x

float ColoredPoint2D::y

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.