vertex_argb

Set the ARGB values for the vertex.

Syntax:

GML Code Example

vertex_argb(buffer, argb);


Argument Description
buffer The buffer to write the information to.
a The alpha value for the colour (0 - 255).
r The red component part of a colour (0 - 255).
g The green component part of a colour (0 - 255).
b The blue component part of a colour (0 - 255).


Returns: N/A


Description

This function will set the ARGB values for the vertex currently being defined for the custom primitive. You supply the 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.


Example:

GML Code Example

vertex_argb(buff, $FFFFFFFF);

The above code will set the ARGB values of the vertex being defined to white.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here