surface_free(id)

id = name of the variable which holds the ID of the surface (see surface_create).

 

Example

surface_free(surface);

 

This function frees the memory used by the surface with the given ID. When a surface is freed, all what was drawn on the surface will be lost.

 

esh_corp11 - Revision #1