LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How linux os handles 2D graphics: fundamental doubt. (https://www.linuxquestions.org/questions/programming-9/how-linux-os-handles-2d-graphics-fundamental-doubt-4175430435/)

sinu_nayak2001 10-04-2012 02:51 AM

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

GlennsPref 10-04-2012 04:25 AM

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)

TobiSGD 10-04-2012 07:19 AM

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.

NevemTeve 10-04-2012 08:28 AM

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


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