VgaGames4

VgaGames4 - window man-pages

[.. upper level ..]

# vg4->window->draw_rect()

Draw a rectangle onto window.

SYNTAX
void vg4->window->draw_rect(const struct VG_Rect *rect, int color, VG_BOOL fill)
FUNCTION PARAMETERS

rect | Rectangle, or NULL = whole window
color | Rectangle color: one of VG_COLORS or from VG_COLOR_RGB()
fill | Whether to fill rectangle

DESCRIPTION
Draw a rectangle onto window. The modified window contents will not be seen unless calling vg4->window->flush().
SEE ALSO
vg4->window->draw_point() vg4->window->draw_points() vg4->window->draw_line() vg4->window->draw_circle() vg4->window->flush()