libmonochrome/doc/ML_polygon.3.txt

36 lines
812 B
Plaintext

ML_POLYGON(3)
=============
Thomas "Cakeisalie5" Touhey
:Email: thomas@touhey.fr
:man source: libmonochrome
:man manual: libmonochrome manual
NAME
----
ML_polygon, ML_filled_polygon - Polygon drawing functions from libmonochrome
SYNOPSIS
--------
[source,c]
----
#include <monochrome.h>
void ML_polygon(const int *x, const int *y,
int nb_vertices, ML_Color color);
void ML_filled_polygon(const int *x, const int *y,
int nb_vertices, ML_Color color);
----
DESCRIPTION
-----------
Draws a polygon on the VRAM. This function needs as parameter 2 arrays,
containing abscissa and ordinates of the polygon vertices. Parameter nb_vertices
should be the number of data to read in arrays. This function draws a line
between each vertices in the polygon.
SEE ALSO
--------
libmonochrome(3),
ML_VRAM(3),
ML_Color(3)