LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2005, 07:39 AM   #1
hazzyb
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Graphics Programming on linux using C


Hello Everybody

Can anyone help me out with any simple sample C graphics application in Linux....

What are the libraries and API's available in linux to support Graphics application..

Thanks
Hazzy
 
Old 07-14-2005, 09:36 AM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
SDL is a good library and used by game developers.

You can also use OpenGL for 3d stuff, but be warned that performance will be poor unless X use 3d accelerated drivers. Otherwise it will use Mesa indirect.
 
Old 07-14-2005, 10:22 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
I'd recomment GTK+

I'd strongly recommend looking at GTK+, if you're running from the Linux GUI (X windows) desktop.
 
Old 07-14-2005, 08:56 PM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
hazzyb,

Check these out:
http://www.libsdl.org/opengl/index.php
http://andrew.textux.com/tutorials/tut1/tutorial1.html
http://andrew.textux.com/tutorials/tut2/tutorial2.html
http://www.opengl.org/documentation/

@paulsm4, the OP meant graphics programming not GUI programming.

Last edited by vharishankar; 07-14-2005 at 08:57 PM.
 
Old 07-15-2005, 02:45 PM   #5
mcconnaughey
LQ Newbie
 
Registered: Jul 2005
Location: St. Louis MO
Distribution: Fedora core 3
Posts: 8

Rep: Reputation: 0
svgalib (www.svgalib.org) is easy to use, but people tend to overlook it because it doesn't fit in well with the modern X graphics paradigm. I have a program (experix project in sourceforge) that plots graphs and writes text using a svgalib-based graphics server.
 
Old 07-15-2005, 03:11 PM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
GTK+: can be a little overwealming but I was able to understand it alot better then xlib. It is slower tho i will admit.

never tried svgalib before but thanks for the link ill have to check that out.

GTK+: will confuse you on all its diffrent versions as well and for larger apps it can get a little confusing on what does what or how this is related to that.


ncurses: is cool but can be a freekin nightmare. i still dont understand colums
and rows

Qt: dont know anything about this think i made a program with it before i Knew anything about C

xlib: Try if you dare you might find it more understandable then me. Never could get my hello world program to display.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use mouse in C graphics programming... bastin_gh Programming 5 07-13-2005 11:47 AM
graphics programming with gcc mamta_k Linux - Software 1 06-01-2004 07:28 AM
Graphics Programming Language renjith Programming 7 08-16-2003 10:08 AM
Graphics programming in linux juby Programming 15 01-25-2003 05:49 AM
Graphics programming on Linux berry Programming 4 10-23-2002 04:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration