|
||
int draw_triangle ( SS_XYZ *pt1, SS_XYZ *pt2, SS_XYZ *pt3 )
SS_XYZ *pt1; // address of first point of polygon SS_XYZ *pt2; // address of second point of polygon SS_XYZ *pt3; // address of third point of polygon
|
|
|||
Synopsis |
#include "silver.h"
The draw_triangle function adds a three-sided polygon to the drawing database in the current object.
|
|
||
Parameters |
pt1, pt2 and pt3 are the addresses of the first, second and third points in the polygon, respectively.
|
|
||
Return Value |
draw_triangle returns FALSE if a memory allocation fails in the process of building the polygon; otherwise, TRUE is returned.
|
|
||
Comments |
draw_triangle is intended as a faster replacement to the script command sequence:
|
|
||
See Also |
|
|||
|
|