vertex_float4

Add four unsigned byte values to a vertex.

Syntax:

vertex_float4(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


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.


Example:

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

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


Back: Building Primitives
Next: vertex_end
© Copyright YoYo Games Ltd. 2015 All Rights Reserved