Is there a function that looks like this:
drawline(x, y);
I think the function explains itself...
Is there a function that looks like this:
drawline(x, y);
I think the function explains itself...
Code:#if _emo #define stereo_type_i_dislike #endif
No standard function.
Normally to draw a line you need 2 points, a starting point and an ending point.
This function will depend on what operating system you are using.
Is this DOS? Windows? Linux? Unix? MacOs?
This is a nice generalized tutorial
http://www.cfxweb.net/~aggrav8d/tutorials/line1.html
Search for Bresenham's algorithm. It deals with drawing lines
Maybee you are thinking of MFC LineTo(Cpoint)
~barjor