vertex_ubyte4

This function adds four unsigned byte values (0 - 255) to the vertex data.

The vertex buffer must have been formatted correctly to accept this using the vertex_format_add_custom function.

 

Syntax:

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

ArgumentTypeDescription
bufferVertex BufferThe vertex buffer to write the information to.
byteRealThe first input value.
byteRealThe second input value.
byteRealThe third input value.
byteRealThe fourth input value.

 

Returns:

N/A

 

Example:

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

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