GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VG_POLYGON(3) FreeBSD Library Functions Manual VG_POLYGON(3)

VG_Polygonagar-vg polygon entity

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

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

VG_Polygon *
(VG_Node *parent);


Uint
(VG_Polygon *P, VG_Point *pt);


void
(VG_Polygon *P, Uint vtx);

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

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

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

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

VG(3), VG_Point(3)

The VG_Polygon class first appeared in Agar 1.3.3.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.