Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VG_POLYGON(3)		    Library Functions Manual		 VG_POLYGON(3)

NAME
       VG_Polygon -- agar-vg polygon entity

SYNOPSIS
       #include	<agar/core.h>
       #include	<agar/gui.h>
       #include	<agar/vg.h>

DESCRIPTION
       VG_Polygon  is a	VG(3) node class which describes a filled polygon with
       VG_Point(3) entities as its vertices.

INTERFACE
       VG_Polygon * VG_PolygonNew(VG_Node *parent)

       Uint VG_PolygonVertex(VG_Polygon	*P, VG_Point *pt)

       void VG_PolygonDelVertex(VG_Polygon *P, Uint vtx)

       The VG_PolygonNew() function creates a new polygon entity  attached  to
       parent, without any vertices.

       VG_PolygonVertex()  creates a new vertex	using the existing VG_Point(3)
       pt.  The	index of the new vertex	is returned.

       VG_PolygonDelVertex() removes the specified vertex vtx from  the	 poly-
       gon.  The function is a no-op if	vtx is an invalid index.

       VG_PolygonSetOutline()  disables	 filling of the	polygon	such that only
       its outline is displayed.  Default behavior  is	to  display  a	filled
       polygon.

SEE ALSO
       VG(3), VG_Point(3)

HISTORY
       The VG_Polygon class first appeared in Agar 1.3.3.

Agar 1.7		       December	21, 2022		 VG_POLYGON(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=VG_Polygon&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help