![]() |
![]() ![]() |
void GD2d_draw_lines
(state, vcount, vert, fcolor, vcolor)
GDstate *state;
int vcount;
SHORT2 vert[];
FLOAT3 fcolor[];
FLOAT3 vcolor[];
GD2d_draw_lines draws one or more lines.
Two points define a line, so you set vcount to the number of lines times 2.
vert should specify vcount pairs of x and y values.
fcolor should be NULL. Or it should specify a color for each line; that is, ( vcount / 2) sets of red, green, and blue values.
vcolor should be NULL, or specify vcount sets of red, green, and blue values.
![]() |
![]() ![]() |