vertex_format_end

Add custom values to the vertex format.

Syntax:

vertex_format_end();


Returns: Real


Description

This function must be called after defining any new vertex format. It returns the new format "handle" (index) which must be used in all further vertex functions that refer to this new format.


Example:

vertex_format_begin();
vertex_format_add_colour();
vertex_format_add_position();
my_format = vertex_format_end();

The above code will create a new vertex format with just colour and position values and then store the format id in the variable "my_format".


Back: Vertex Formats
Next: vertex_format_delete
© Copyright YoYo Games Ltd. 2018 All Rights Reserved