'\" t .\" Title: ml_line .\" Author: Thomas "Cakeisalie5" Touhey .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 07/18/2016 .\" Manual: libmonochrome .\" Source: libmonochrome .\" Language: English .\" .TH "ML_LINE" "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_line \- Line drawing functions from libmonochrome .SH "SYNOPSIS" .sp .nf #include void ML_line(int x1, int y1, int x2, int y2, ML_Color color); void ML_horizontal_line(int y, int x1, int x2, ML_Color color); void ML_vertical_line(int x, int y1, int y2, ML_Color color); .fi .SH "DESCRIPTION" .sp These functions draw lines on the VRAM\&. .sp For horizontal line drawing, the ML_horizontal_line function is faster than ML_line, which has a general algorithm (the Bresenham algorithm)\&. .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