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
polygon(3) Allegro manual polygon(3)

polygon - Draws a filled polygon. Allegro game programming library.

#include <allegro.h>

void polygon(BITMAP *bmp, int vertices, const int *points, int color);

Draws a filled polygon with an arbitrary number of corners. Pass the number of vertices and an array containing a series of x, y points (a total of vertices*2 values). Example:

   int points[12] = { 50, 50,   100, 100,  100, 150,
                      50, 200,  0,   150,  0,   100 };
   ...
   clear_to_color(screen, makecol(255, 255, 255));
   polygon(screen, 6, points, makecol(0, 0, 0));

triangle(3), polygon3d(3), drawing_mode(3), makecol(3), excamera(3)
version 4.4.3 Allegro

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.