ClearFreeRect

Category: Landscape
Since engine version: 1.0 OC

Description

Removes all material within the specified rectangle. Coordinates are always global. Excluding the right and lower limits of the rectangle.

Syntax

void ClearFreeRect(int x, int y, int width, int height);

Parameters

x:
Left limit of the rectangle. Always global coordinates.
y:
Top limit of the rectangle. Always global coordinates.
width:
Width of the rectangle
height:
Height of the rectangle

Remark

This call may take quite a while for large rectangles.

Example

ClearFreeRect(0, 0, LandscapeWidth(), LandscapeHeight());
Empties the complete landscape.
See also: BlastFree, DigFree, DigFreeRect