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.
vertex_format_delete(format_id);
Argument | Type | Description |
---|---|---|
format_id | Vertex Format | The vertex format to delete |
N/A
vertex_format_delete(my_format);
The above code will remove the vertex format stored in the variable my_format from memory.