Syntax
static void fill_rect(
int x1,
int y1,
int x2,
int y2,
CL_Surface *fill_surface,
int focus_x=0,
int focus_y=0);
Parameters
| x1 | - | Leftmost x-coordinate. |
| y1 | - | Upper y-coordinate. |
| x2 | - | Rightmost x-coordinate. |
| y2 | - | Lower y-coordinate. |
| fill_surface | - | surface used to fill the area (tiled) |
| focus_x | - | destination x offset used to offset (0, 0) in fill_surface (controls tiling position) |
| focus_y | - | destination y offset used to offset (0, 0) in fill_surface (controls tiling position) |
Description
Draw a filled rectangle from (x1, y1) to (x2, y2) using the surface fill_surface as tiled background
Back to index
|