fg_polyline()

Win32 DirectX Fastgraph/Light

Prototype

void fg_polyline (int *vertex_array, int n);

Sub fg_polyline (vertex_array() As Long, ByVal n As Long)

procedure fg_polyline (var vertex_array : integer; n : integer);

Description

The fg_polyline() function draws an unfilled polygon in screen space, using a single array to define the polygon vertices. Compare this to fg_polygon(), which uses separate arrays for the x and y components of each vertex.

Parameters

vertex_array is the name of the array containing the (x,y) coordinate pairs of each vertex. The first array element is the x component of the first vertex, the second element is the y component of the first vertex, the third element is the x component of the second vertex, and so forth.

n is the number of vertices in the polygon.

Return value

none

Restrictions

none

See also

fg_polyfill(), fg_polygon(), fg_polyoff()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.