fg_polygon()

Win32 DirectX Fastgraph/Light

Prototype

void fg_polygon (int *ix_array, int *iy_array, int n);

Sub fg_polygon (ix_array() As Long, iy_array() As Long, ByVal n As Long)

procedure fg_polygon (var ix_array, iy_array : integer; n : integer);

Description

The fg_polygon() function draws an unfilled polygon in screen space, using two coordinate arrays to define the polygon vertices. The drawing of the polygon begins at the first vertex defined in the coordinate arrays, through the remaining vertices in sequence, and finally back to the first vertex if necessary.

Parameters

ix_array is the name of the array containing the screen space x coordinates of the polygon vertices.

iy_array is the name of the array containing the screen space y coordinates of the polygon vertices.

n is the number of vertices in the polygon.

Return value

none

Restrictions

none

See also

fg_polyline(), fg_polygonw()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.