Pixel-Composer/scripts/fd_rectangle_clear/fd_rectangle_clear.gml

13 lines
387 B
Plaintext
Raw Normal View History

2023-02-14 02:48:33 +01:00
/// fd_rectangle_clear(instance id);
function fd_rectangle_clear(domain) {
// Clears the fluid dynamics rectangle, removing all its content.
// instance id: The instance id of the fluid dynamics rectangle.
with (domain) {
surface_free(sf_pressure);
surface_free(sf_velocity);
surface_free(sf_material_0); surface_free(sf_material_1);
surface_free(sf_world);
}
}