LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2009, 12:14 PM   #1
manas.biswal
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Core graphics programming in Linux


Dear Friends;

Can you please tell me how core graphics programming can be done using C in linux . As in using graphics.h header file in turbo c in DOS. So that I will only add the header file and simply write -
say drawline(x1,y1,x2,y2) it will drawthe line having given coordinates
 
Old 10-02-2009, 02:48 PM   #2
archlinux_jessica
Member
 
Registered: Aug 2009
Location: PA USA
Distribution: Arch Linux
Posts: 78

Rep: Reputation: 19
Libraries

There are many libraries I know of to look at, and might be another way of doing things that I am not aware of. The type of graphics I believe you were doing on was using the built in DOS graphics screens.

libsvga would give you console graphics capabilities.

SDL will give you game powered graphics, but requires Windows or xorg to run.

cario can give you nice graphics capabilities, and can be connected to different platforms, such as win32, gtk as well as drawing svg files or pdf files, and probably other features I haven't looked into yet.

Those are the 2D graphics libraries I can think of. You will need to install those to use of course and add the header files and link files when you compile.

-EDIT- I reread and see you dont mean libraries... I'm sorry. So far in my studies I haven't found a way to do this, however that doesn't mean you cant, I just haven't found it yet

-Jessica-

Last edited by archlinux_jessica; 10-02-2009 at 02:49 PM.
 
Old 10-02-2009, 04:20 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
if you want to use " c " look at
CImge lib and use cimg.h
http://cimg.sourceforge.net/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 graphics in linux when programming c++ varunsharma Linux - Software 3 08-18-2007 09:53 PM
linux 2D graphics programming in C help LinuxLala Programming 10 07-14-2006 07:21 PM
Graphics Programming on linux using C hazzyb Programming 5 07-15-2005 04:11 PM
Graphics programming in linux juby Programming 15 01-25-2003 06:49 AM
Graphics programming on Linux berry Programming 4 10-23-2002 05:41 AM


All times are GMT -5. The time now is 08:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration