vertex_format_begin


语法:

vertex_format_begin();


返回:

N/A(无返回值)


描述

Before you can define your new vertex format you must tell GameMaker Studio 2 that you're doing so using this function. You must call this first, then define the format values using the appropriate functions, and finally call vertex_format_end to finish the definition and return the new format "handle".


例如:

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".