vertex_float4

Add floating point values to a vertex.

Syntax:

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


Argument Description
buffer The buffer to write the information to.
float The first input value.
float The second input value.
float The third input value.
float The fourth input value.


Returns: N/A


Description

This function will add four floating point values to the vertex data. The vertex must have been formatted correctly to accept this using the vertex_format_add_custom function.


Example:

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

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


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