Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 10-04-2012, 02:51 AM   #1
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?

Srinivas Nayak
Old 10-04-2012, 04:25 AM   #2
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: pclinuxos slackware64 tails kali
Posts: 3,372
Blog Entries: 33

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

Did you really try to search LQ or the web for this?
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...

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
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,142
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
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
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,277

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


graphics, linux

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
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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:29 PM.

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