vertex_argb

Set the ARGB values for the vertex.

语法:

vertex_argb(buffer, argb);


参数 描述
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).


返回: N/A(无返回值)


描述

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.


例如:

vertex_argb(buff, $FFFFFFFF);

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


上一页: Building Primitives
下一页: vertex_texcoord
© Copyright YoYo Games Ltd. 2018 All Rights Reserved