How does it work!? X?

Hello!

I have some wondering about how the grphic part of SDL really works.
When I read about GTK, Qt, Motif and others they say that theese systems build on X (X.11). Then when I read about som others they say that they build on SDL.
After this I figure that SDL does not use X. I’ve heard some people say that SDL writes directly to the framebuffer. Is any of this true and if so why is it possible to get Xlib errors!?

If anyone is familiar with the underlieing systems of X and SDL I would be so glad for a breif explaination. Any kind of documentation regarding theese questians would also be highly appriciated!!!

Many many many prethanks…

/Martin

H?strusk och gr? moln - k?p en resa till solen p? Yahoo! Resor

If you lauch under X a program which relies on SDL, then it will use X library calls. If you launch it under a framebuffer console, then it will use the framebuffer calls.

SDL is built upon several rendering system like the kernel framebuffer, X11, directX… The X11 part is built upon X11 libs like GTK or QT.

Julien----- Original Message -----
From: Martin Holmgren
To: sdl at libsdl.org
Sent: Wednesday, November 05, 2003 1:24 PM
Subject: [SDL] How does it work!?? X??

Hello!

I have some wondering about how the grphic part of SDL really works.
When I read about GTK, Qt, Motif and others they say that theese systems build on X (X.11). Then when I read about som others they say that they build on SDL.
After this I figure that SDL does not use X. I’ve heard some people say that SDL writes directly to the framebuffer. Is any of this true and if so why is it possible to get Xlib errors!?

If anyone is familiar with the underlieing systems of X and SDL I would be so glad for a breif explaination. Any kind of documentation regarding theese questians would also be highly appriciated!!!

Many many many prethanks…

/Martin
H?strusk och gr? moln - k?p en resa till solen p? Yahoo! Resor

Hi!

Julien Pauty wrote:

If you lauch under X a program which relies on SDL, then it will use X
library calls. If you launch it under a framebuffer console, then it
will use the framebuffer calls.

SDL is built upon several rendering system like the kernel framebuffer,
X11, directX… The X11 part is built upon X11 libs like GTK or QT.

What makes you think so? Last time I updated my XKB patch, SDL’s X11 backend
was pretty much pure Xlib.–

./lxnt

What makes you think so? Last time I updated my XKB patch, SDL’s X11
backend
was pretty much pure Xlib.

That’s exactly what I mean. Sorry if it was not clear