vertex_format_delete

This function must be called whenever you are finished using any created vertex formats.

You provide the vertex format (as returned by the function vertex_format_end), and this function will free the memory associated with it. Note that if you try to use this format again after calling this function, you will get an error.

 

Syntax:

vertex_format_delete(format_id);

ArgumentTypeDescription
format_idVertex FormatThe vertex format to delete

 

Returns:

N/A

 

Example:

vertex_format_delete(my_format);

The above code will remove the vertex format stored in the variable my_format from memory.