LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 03: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, 05:25 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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 05:35 AM.
 
1 members found this post helpful.
Old 10-04-2012, 08:19 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 09:28 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,942

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
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


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 08:33 PM
What are the most fundamental things to know about computers and Linux? joeBuffer General 37 09-16-2009 09:58 PM
LXer: 10 fundamental differences between Linux and Windows LXer Syndicated Linux News 0 08-27-2008 09: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 01:31 AM


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