polygon (3) - Linux Manuals
polygon: Draws a filled polygon. Allegro game programming library.
Command to display polygon
manual in Linux: $ man 3 polygon
NAME
polygon - Draws a filled polygon. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void polygon(BITMAP *bmp, int vertices, const int *points, int color);
DESCRIPTION
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));
Pages related to polygon
- polygon3d (3) - Draws a 3d polygon onto the specified bitmap. Allegro game programming library.
- polygon3d_f (3) - Draws a 3d polygon onto the specified bitmap. Allegro game programming library.
- polygon_z_normal (3) - Finds the Z component of the normal vector to three vertices. Allegro game programming library.
- polygon_z_normal_f (3) - Finds the Z component of the normal vector to three vertices. Allegro game programming library.
- poll_joystick (3) - Polls the joystick. Allegro game programming library.
- poll_keyboard (3) - Polls the keyboard. Allegro game programming library.
- poll_mouse (3) - Polls the mouse. Allegro game programming library.
- poll_scroll (3) - Checks the status of a scroll request with triple buffering. Allegro game programming library.