37 lines
796 B
Plaintext
37 lines
796 B
Plaintext
|
:Author: Thomas "Cakeisalie5" Touhey
|
||
|
:Email: thomas@touhey.fr
|
||
|
:man source: libmonochrome
|
||
|
:man manual: libmonochrome
|
||
|
|
||
|
ML_POLYGON(3)
|
||
|
=============
|
||
|
|
||
|
NAME
|
||
|
----
|
||
|
ML_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)
|