On Sat, 13 Jan 2001, Anand Biligiri S wrote:

> Sukrit K Mehra wrote:
> > 
> > > How do we do graphics programing in Linux/Unix using
> > > pure C/C++.What header files(graphics.h in dos) should
> > > we use in this?
> > 
> > WEll the header file is curses.h and to compile you have to do a
> > gcc -lcurses code.c
> I think curses is for textmode functionality. svgalib gives graphics
> functionality

Yes, ncurses is for text UI. For GUI, you would have to use Xlib & Xt (X
Libraries, X Toolkit), if you want to program in C. May be u can get a
good book on X Windows Programming (folks here would be able suggest a
good book) For C++, you might use Toolkit like GTK-- (C++ interface to GTK
See www.gtk.org). I found that using perl Tk is really cool (Perl
interface to Tk), eventhough it lacks some fancy features, like drag &
drop.

Now, if what u want is Graphics programming, without X, then you should
use SVGAlib. Get SVGA lib & it contains some sample programs & demos. See
your favourite distro's CD for the source & samples. The library as such
might be already installed in your system.

Sreeji


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to