vertex_ubyte4


Description

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.


Syntax:

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

Argument Description
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.


Returns:

N/A


Example:

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

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