39 lines
727 B
Plaintext
39 lines
727 B
Plaintext
:Author: Thomas "Cakeisalie5" Touhey
|
|
:Email: thomas@touhey.fr
|
|
:man source: libmonochrome
|
|
:man manual: libmonochrome
|
|
|
|
ML_LINE(3)
|
|
==========
|
|
|
|
NAME
|
|
----
|
|
ML_line - Line drawing functions from libmonochrome
|
|
|
|
SYNOPSIS
|
|
--------
|
|
[source,c]
|
|
----
|
|
#include <monochrome.h>
|
|
|
|
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);
|
|
----
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
These functions draw lines on the VRAM.
|
|
|
|
For horizontal line drawing, the ML_horizontal_line function is faster than
|
|
ML_line, which has a general algorithm (the Bresenham algorithm).
|
|
|
|
SEE ALSO
|
|
--------
|
|
libmonochrome(3),
|
|
ML_VRAM(3),
|
|
ML_Color(3)
|