This structure defines a vertex of a triangle for gradient filling operations.
struct trivertex { int x; int y; unsigned short red; unsigned short green; unsigned short blue; unsigned short alpha; };
x | The logical x coordinate of the upper left corner of a triangle |
y | The logical y coordinate of the upper left corner of a triangle |
red | The red color intensity at the given point. |
green | The green color intensity at the given point. |
blue | The blue color intensity at the given point. |
alpha | The alpha shift color information at the given point. |
The members red, green, blue and alpha indicate color information at the point x, y. The color information of each channel is specified as a value ranging from 0x0000 to 0xff00. This allows higher color resolution for an object that has been split into small triangles for display.