Logo Search packages:      
Sourcecode: libcaca version File versions  Download package

void caca_draw_line ( int  x1,
int  y1,
int  x2,
int  y2,
char  c 
)

Draw a line on the screen using the given character.

Parameters:
x1 X coordinate of the first point.
y1 Y coordinate of the first point.
x2 X coordinate of the second point.
y2 Y coordinate of the second point.
c Character to draw the line with.
Returns:
void

Definition at line 69 of file line.c.

References clip_line(), and draw_solid_line().

Referenced by caca_draw_box(), caca_draw_triangle(), and caca_fill_ellipse().

{
    struct line s;
    s.x1 = x1;
    s.y1 = y1;
    s.x2 = x2;
    s.y2 = y2;
    s.c = c;
    s.draw = draw_solid_line;
    clip_line(&s);
}


Generated by  Doxygen 1.6.0   Back to index