vertex_float4

This function adds four floating point values to the vertex data.

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

 

Syntax:

vertex_float4(buffer, float, float, float, float);

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

 

Returns:

N/A

 

Example:

vertex_float4(buff, 0.05, 0.01, room_width / x, room_height / y);

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