Richard Ivanowich wrote:

>       I want to know how to draw lines, rectangles, circle, etc. in the console
> or in X windows.  Can anyone give me some example code or point me in the
> right direction.

For the console, see the SVGAlib documentation, specifically the stuff
about the VGAGL library.

For X, you need to create a shell containing a suitable canvas widget. 
If you're using Motif, use an XmDrawingArea widget. I can send you the
code for a non-Motif canvas widget.

Then, add a callback for Expose events, which redraws the window using
the appropriate Xlib calls.

If you are unfamiliar with X programming, get a decent book.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to