libmonochrome/man/man3/ml_polygon.3

22 lines
710 B
Groff

.TH ML_polygon 3
.SH NAME
ML_polygon - Polygon drawing functions from libmonochrome
.SH SYNOPSIS
.B #include <monochrome.h>
.B void ML_polygon(const int *x, const int *y, int nb_vertices, ML_Color color);
.B void ML_filled_polygon(const int *x, const int *y, int nb_vertices, ML_Color color);
.SH 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.
.SH SEE ALSO
.BR libmonochrome(3),
.BR ML_VRAM(3),
.BR ML_Color(3)
.SH AUTHOR
Copyright (C) 2016 by Thomas "CakeIsALie5" Touhey.