36 lines
826 B
Plaintext
36 lines
826 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_display_vram*(3),
|
|
*ML_color*(3)
|