VgaGames 3 - Video man-pages

[.. upper level ..]

VG3_draw_line()

Draw a line onto an image or the window.
SYNTAX
void VG3_draw_line(void *wstruct, void *imgdst, int x1, int y1, int x2, int y2, int color)

FUNCTION PARAMETERS
wstruct Window-struct
imgdst Image, or NULL = window
x1 Start x-position of the line
y1 Start y-position of the line
x2 End x-position of the line
y2 End y-position of the line
color Line color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)

DESCRIPTION
Draw a line onto an image or the window with the given color.

SEE ALSO
VG3_draw_clear() VG3_draw_point() VG3_draw_rect() VG3_draw_text() VG3_draw_colorchange()