Computing.Net > Forums > Linux > graphics programming in linux c

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

graphics programming in linux c

Reply to Message Icon

Name: paragsdeshpande
Date: May 6, 2004 at 04:24:54 Pacific
OS: Linux-2.4.18
CPU/Ram: p4,512
Comment:

hi,
i am beginner in linux.i want to do a graphics programme in C.i have done it in borland-c using <graphics.h>.
pls guide me in Linux Env.



Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: May 6, 2004 at 05:28:31 Pacific
Reply:

There are many possibilities. Here are some of the most popular:

Gimp widget/drawing libraries:

info gtk
info gdk
info glib

http://www.gtk.org/

OpenGL Graphics programming:

http://www.opengl.org

Simple Directmedia Layer (MM/games):

http://www.libsdl.org

Raw X:

http://www.xfree86.org/current/manindex3.html

http://www.rahul.net/kenton/xsites.html



0

Response Number 2
Name: Sord
Date: May 7, 2004 at 15:37:23 Pacific
Reply:

Isn't graphics.h for console grahpics?

If so, ncurses is what you want to use.


0

Response Number 3
Name: Wolfbone
Date: May 7, 2004 at 19:20:22 Pacific
Reply:

There's nothing wrong with good console based programmes but unfortunately you would not be able to do any graphics programming at all with the ncurses library. The nearest equivalent to the dos/win library for which graphics.h provides the api would be SVGAlib but starting graphics programming in GNU/Linux with SVGAlib would be somewhat eccentric and probably not very healthy (and certainly not portable). Like it or not, graphics programming in the *nix world is X based and one may as well get started on it rather than artificially cling to a dos/win like paradigm. So I probably shouldn't have mentioned SVGAlib at all ;)



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


remote email access For got root password for...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: graphics programming in linux c

C,C++ graphics programs in linux www.computing.net/answers/linux/cc-graphics-programs-in-linux/24654.html

Running c program in linux www.computing.net/answers/linux/running-c-program-in-linux/25556.html

How to program in linux www.computing.net/answers/linux/how-to-program-in-linux/28628.html