This function sets the ARGB values for the vertex currently being defined for the custom primitive.
You supply the vertex buffer to write the data into as well as the red, green, blue and alpha values that you wish to use as a single 32-bit unsigned integer - alpha sample in the highest 8 bits, followed by the red sample, green sample and finally the blue sample in the lowest 8 bits. You can use hex notation ($AARRGGBB), a real number or use any of the make_colour_* functions to define the colour value.
vertex_argb(buffer, argb);
Argument | Type | Description |
---|---|---|
buffer | Vertex Buffer | The vertex buffer to write the information to. |
argb | Colour | The ARGB value to set. |
N/A
vertex_argb(buff, $FFFFFFFF);
The above code sets the ARGB values of the vertex being defined to white.