LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-04-2012, 02:51 AM   #1
sinu_nayak2001
Member
 
Registered: Oct 2009
Location: India
Distribution: Puppy Linux, Wary 530.
Posts: 31

Rep: Reputation: 20
How linux os handles 2D graphics: fundamental doubt.


Dear All,

To my knowledge, linux boots into text mode. (Correct me if I am wrong.) Then it switches to graphical mode. Which library in linux handles the graphical drawings like line, rectangle, circle, pixel etc? I mean, where is the code for drawline, drawcircle, drawpixel etc? Is X responsible for doing all these? Where can I find the code for these functions for linux os?


Sincerely,
Srinivas Nayak
 
Old 10-04-2012, 04:25 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,656
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Yes, it is X (afaik).

Did you really try to search LQ or the web for this?
http://linux.die.net/man/7/x.org
I googled, "GNU/Linux drawline", without the quotes.

And found many listings.

we (LQ and I) can only help if you know what you want.

this link points to a more programmer view...http://cboard.cprogramming.com/linux...ing-linux.html

Just one of many pages....

Cheers, Glenn (late one afternoon)

Last edited by GlennsPref; 10-04-2012 at 04:35 AM.
 
1 members found this post helpful.
Old 10-04-2012, 07:19 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
X will give you a basic framework for displaying graphics. The real work of drawing things is mostly done by frameworks like GTK or Qt, or by the applications themselves.
 
Old 10-04-2012, 08:28 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Note: There used to be an svgalib project for graphics without X, but now it is dead. So use X, with... SDL, for example.
 
  


Reply

Tags
graphics, linux



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
What distro handles ATI Radeon HD 4200 graphics? rip Linux - Hardware 7 03-08-2010 07:33 PM
What are the most fundamental things to know about computers and Linux? joeBuffer General 37 09-16-2009 08:58 PM
LXer: 10 fundamental differences between Linux and Windows LXer Syndicated Linux News 0 08-27-2008 08:10 PM
The Fundamental Differences Between Linux and Windows Charred Linux - News 23 10-30-2005 01:50 AM
fundamental differences bewteen linux and windows gatomeno Linux - Newbie 5 10-23-2003 12:31 AM

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

All times are GMT -5. The time now is 10:32 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