54 lines
1.9 KiB
Groff
54 lines
1.9 KiB
Groff
'\" t
|
|
.\" Title: ml_polygon
|
|
.\" Author: Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
|
|
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
|
.\" Date: 07/18/2016
|
|
.\" Manual: libmonochrome
|
|
.\" Source: libmonochrome
|
|
.\" Language: English
|
|
.\"
|
|
.TH "ML_POLYGON" "3" "07/18/2016" "libmonochrome" "libmonochrome"
|
|
.\" -----------------------------------------------------------------
|
|
.\" * Define some portability stuff
|
|
.\" -----------------------------------------------------------------
|
|
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
.\" http://bugs.debian.org/507673
|
|
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
.ie \n(.g .ds Aq \(aq
|
|
.el .ds Aq '
|
|
.\" -----------------------------------------------------------------
|
|
.\" * set default formatting
|
|
.\" -----------------------------------------------------------------
|
|
.\" disable hyphenation
|
|
.nh
|
|
.\" disable justification (adjust text to left margin only)
|
|
.ad l
|
|
.\" -----------------------------------------------------------------
|
|
.\" * MAIN CONTENT STARTS HERE *
|
|
.\" -----------------------------------------------------------------
|
|
.SH "NAME"
|
|
ML_polygon \- Polygon drawing functions from libmonochrome
|
|
.SH "SYNOPSIS"
|
|
.sp
|
|
.nf
|
|
#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);
|
|
.fi
|
|
.SH "DESCRIPTION"
|
|
.sp
|
|
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"
|
|
.sp
|
|
libmonochrome(3), ML_VRAM(3), ML_Color(3)
|
|
.SH "AUTHOR"
|
|
.PP
|
|
\fBThomas "Cakeisalie5" Touhey\fR <\&thomas@touhey\&.fr\&>
|
|
.RS 4
|
|
Author.
|
|
.RE
|