PDA

View Full Version : anyone know where i can find documentation on the x11 lib?



sandbucket
12-12-2013, 10:45 AM
i really cant find much other than a few examples on wikipedia. i also saw some books on amazon about it but they were written around 1998 or so...
anyone know if the books are any good or if there is documentation on the internet anywhere?

Dark Photon
12-12-2013, 06:08 PM
What part of X11's API are you looking for? That's the driving factor here.

Are you looking for reference on the core API? That hasn't changed significantly and the Xlib Programming Guide and Xlib Reference Manual may be all you need. The X protocol? There's a book for that. X extensions? If so, which? Don't know the best source but they're probably on the net. GLX? There's a book for that, with the GLX extension specs on this site to round things out. The ancient Xt or Motif (gasp)? Just use Qt instead of Xt/Motif and consider yourself lucky that there are much better alternatives available nowadays.

sandbucket
12-14-2013, 08:11 AM
hi, im looking for mouse and keyboard events. Im not sure what glx is but im also looking for an explanation of the source code ive found for creating a window with an opengl context.

Dark Photon
12-14-2013, 09:45 AM
Yes, sounds like you want the Xlib Programming Guide and Xlib Reference Manual. GLX is the X extension that allows you to create OpenGL contexts within the X/Windows system (it's the "glue" between X and OpenGL).

Feel free to fire off some questions. A number of us have dealt with what you're talking about, and someone here might be able to help you. As long as this is toward helping you write OpenGL applications, then it's all good.

sandbucket
12-14-2013, 10:18 AM
the xlib programming guide and xlib reference manual are books?

Dark Photon
12-14-2013, 04:51 PM
Yes:

* Xlib Programming Manual for Version 11, Rel. 5, Vol. 1 (http://www.amazon.com/Programming-Manual-Version-Definitive-Guides/dp/1565920023/ref=sr_1_1?ie=UTF8&qid=1387064929&sr=8-1&keywords=xlib+programming+guide)
* Xlib Reference Manual R5 (http://www.amazon.com/Reference-Manual-Definitive-Guides-Window/dp/1565920066/ref=sr_1_2?ie=UTF8&qid=1387064929&sr=8-2&keywords=xlib+programming+guide)