vertex_ubyte4

Add four unsigned byte values to a vertex.

语法:

vertex_ubyte4(buffer, byte, byte, byte, byte);


参数 描述
buffer The buffer to write the information to.
byte The first input value.
byte The second input value.
byte The third input value.
byte The fourth input value.


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


描述

This function will add four unsigned byte values (0 - 255) to the vertex data. The vertex must have been formatted correctly to accept this using the vertex_format_add_custom function.


例如:

vertex_ubyte4(buff, irandom(255), irandom(255), irandom(255), 127);

The above code will add four values to the vertex data being defined.


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