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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-04-2012, 02:51 AM
|
#1
|
|
Member
Registered: Oct 2009
Location: India
Distribution: Puppy Linux, Wary 530.
Posts: 31
Rep:
|
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
|
|
|
|
10-04-2012, 04:25 AM
|
#2
|
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,098
Rep: 
|
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.
|
10-04-2012, 07:19 AM
|
#3
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,171
|
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.
|
|
|
|
10-04-2012, 08:28 AM
|
#4
|
|
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,038
|
Note: There used to be an svgalib project for graphics without X, but now it is dead. So use X, with... SDL, for example.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:03 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|