-   Programming (
-   -   How linux os handles 2D graphics: fundamental doubt. (

sinu_nayak2001 10-04-2012 03: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?

Srinivas Nayak

GlennsPref 10-04-2012 05:25 AM

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)

TobiSGD 10-04-2012 08: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 09: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 11:21 AM.