![]() |
![]() |
![]() |
![]() |
GD2d_draw_rects
Synopsis
void GD2d_draw_rects
(state, vcount, vert, fcolor)
GDstate *state;
int vcount;
SHORT2 vert[];
FLOAT3 fcolor[];Description
GD2d_draw_rects draws one or more unfilled rectangles.
Two points define a rectangle, specifying diagonally opposite corners, so you set vcount to the number of rectangles times 2.
vert should specify vcount pairs of x and y values.
fcolor should be NULL. Or it should specify a color for each rectangle; that is, ( vcount / 2) sets of red, green, and blue values.
For details on the parameters, see Common parameters to the GD2d_draw routines .
![]() |
![]() |
![]() |
![]() |