mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
15 lines
390 B
Text
15 lines
390 B
Text
/// 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);
|
|
}
|
|
|
|
|
|
|
|
}
|