TOC PREV NEXT INDEX

GD2d_draw_polygon

Synopsis

draw polygon


void GD2d_draw_polygon
(state, vcount, vert, fcolor, vcolor), concave
DDstate *state;
int vcount;
SHORT2 vert[];
FLOAT3 fcolor[];
FLOAT3 vcolor[];
int concave;

Description

GD2d_draw_polygon draws a single arbitrary polygon.

You set vcount to the number of vertices in the polygon.

vert should specify vcount pairs of x and y values.

fcolor should be NULL. Or it should specify a color for each triangle; 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.

concave specifies if the polygon is concave, a value of 1, or convex, a value of 0.

For details on the parameters, see Common parameters to the GD2d_draw routines .


TOC PREV NEXT INDEX