Skip to content

surface_free

Vašek edited this page Jan 18, 2019 · 3 revisions

surface_free

Destroys the surface

Syntax:

surface_free(surface_id)
Argument Description
RenderTarget2D surface_id The ID of the surface

Returns: void

Description:

When you are finished with using surface, you can free it from your memory by deleting it.

Example:

surface_free(surf);

This function will delete the surface surf. Now it's deleted from your memory.

Back to surfaces

Clone this wiki locally