X11->SDL info

This is sort of a followup to my QuicktimeVR question a few days back.

I have found a GPL’d program that does what I need. It’s a bit slow and
written in X11, but both of these can be taken care of. After talking
with the author, he said I could use this code under the LGPL license so
I can make a library.

Now to the point.
Does anyone know of a decent source of X11 programming info. I’ve never
done raw X11 programming so I’m not sure what all the functions he uses
do. Basicly I need a reference that will give me the info I need to rip
out the X11 code replace it with SDL code.

			-fjr-- 

Frank J. Ramsay
@Frank_Ramsay

Frank Ramsay wrote:

This is sort of a followup to my QuicktimeVR question a few days back.

I have found a GPL’d program that does what I need. It’s a bit slow and
written in X11, but both of these can be taken care of. After talking
with the author, he said I could use this code under the LGPL license so
I can make a library.

Now to the point.
Does anyone know of a decent source of X11 programming info. I’ve never
done raw X11 programming so I’m not sure what all the functions he uses
do. Basicly I need a reference that will give me the info I need to rip
out the X11 code replace it with SDL code.

                            -fjr


Frank J. Ramsay
fjr at marsdome.penguinpowered.com

When I need to know how something in X works, I take a look at
the source code for Tcl/Tk. Tk is a really nice toolkit written
for X. There are also ports of Tk for Windows and Mac. One of
the wacky things about the Windows port is that it way done by
writing an X like layer on top of Windows APIs. This means there
are lots of great examples of how to do in in an X way and how
X things can be mapped to Windows GDI calls. Just go to
htpp://dev.scriptics.com to download the source, it is BSD licensed
so you are free to do whatever you want with it.

You would need to do some source surfing, but I assume you
up for that.

Mo DeJong
Red Hat In

Now to the point.
Does anyone know of a decent source of X11 programming info. I’ve never
done raw X11 programming so I’m not sure what all the functions he uses
do. Basicly I need a reference that will give me the info I need to rip
out the X11 code replace it with SDL code.

O’Reilly has a collection of large bible-ish books on X11.
They’re a little old, but should still be up to date.

They’re also a little expensive if you get 'em all, but it’s been rumored
(on slashdot or something?) that they might be ‘opening’ them up and
providing the content freely over the 'net.

I could be halucinating, as usual.

-bill!
(who just got back from a really good LUG meeting :slight_smile: )

The X11 functions have there own man pages (buried in the X11
directory) and X11 has a few post script references. These are
perectly adequate for just looking up functions to figure out what
they do.

Wesley Poole
AKA Phoenix Kokido
Tired of hiding behind a on-line only identity…
members.xoom.com/kokido
@Wes_Poole

Frank Ramsay wrote:> This is sort of a followup to my QuicktimeVR question a few days back.

I have found a GPL’d program that does what I need. It’s a bit slow and
written in X11, but both of these can be taken care of. After talking
with the author, he said I could use this code under the LGPL license so
I can make a library.

Now to the point.
Does anyone know of a decent source of X11 programming info. I’ve never
done raw X11 programming so I’m not sure what all the functions he uses
do. Basicly I need a reference that will give me the info I need to rip
out the X11 code replace it with SDL code.

  		-fjr


Frank J. Ramsay
fjr at marsdome.penguinpowered.com

Does anyone know of a decent source of X11 programming info. I’ve never
done raw X11 programming so I’m not sure what all the functions he uses
do. Basicly I need a reference that will give me the info I need to rip
out the X11 code replace it with SDL code.

O’Reilly has a collection of large bible-ish books on X11.
They’re a little old, but should still be up to date.

I usually slurp the Xlib reference (it’s one big text file) into an
Emacs buffer, which lets me search and browse it quickly. It is
available from any X11 distribution; if you can’t find it, I’ve put it
in ftp://ptah.lnf.kth.se/pub/misc/xlib.doc.gz . This has helped me
immensely in X11 development.

For grasping the fundamentals (visuals, GCs, etc), the O’Reilly books are
a little more friendly, though.