PDA

View Full Version : openGL with GLX



06-16-2005, 09:29 AM
for some reason, my company use openGL with GLX on linux and with WGL under windows.
I can't find any tutorial on how to code openGL with GLX, everything I can found is GL+ GLUT,

I wonder if anybody knows where I can found a GL+GLX tutorial.

Thanks!!

dorbie
06-16-2005, 09:37 AM
Your company does that because that's exactly the right thing to do, those are the equivalent interface APIs provided on those platforms. The only alternative is to abstract that away beneath a library someone else wrote to hide the platform specific details and that can have disadvantages.

Read this:

http://www.plunk.org/opengl/intro_paper.pdf

You should probably get this book:

"OpenGL: Programming For The X Window System"
by Mark J. Kilgard
ISBN: 0201483599

It's a bit dated now but it will give you what you need. The most significant omission will probably be glXGetProcAddress, but you know about that now that I've told you :-).

RigidBody
06-16-2005, 11:41 PM
glx sample (http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=4;t=001436) at the middle of the page