PDA

View Full Version : OpenGL, GLX and X Window



etie
06-28-2000, 11:01 PM
Hello, I'm currently learning Xlib with the goal of eventually using OpenGL on X Window. I don't want to use GLUT, even though it would make the coding easier (but with slower execution) and "portable". My questions are as follows: Where does GLX fit in when programming OpenGL graphics on X? My understanding so far is that GLX is an extension to X, but does that imply a speed penality? Can't I just use Xlib calls and OpenGL without using GLX aswell? Speed is the priority. Thank you for any responses you may provide.
--e!

Sjonny
06-28-2000, 11:48 PM
He,

What I think is true is that the GLX calls are the OpenGL 3D api calls. If you use a correct glx lib specifically for you video card it get accellerated, otherwise you get software rendering (mesa specific?)
so you really can't get past glx. And it's probably fast enough? Don't know how the DRI fits in all this, but maybe that's the thing you're looking for...

John

etie
06-29-2000, 12:20 AM
Sjonny--

Thanks for the reply. So GLX is the Xlib extension to accelerate OpenGL graphics, right? What's DRI? :-)

Sjonny
06-29-2000, 12:25 AM
DRI is the new Direct Rendering Interface used in XFree 4.0. go to http://www.precisioninsight.com/ for more details on this. Or just http://www.xfree86.org.

John

07-03-2000, 04:05 AM
I don't want to use GLUT, even though it would make the coding easier (but with slower execution) and "portable".

Maybe you want to try SDL. It's available for many plattforms, and it's faster than glut...

take a look at www.libsdl.org (http://www.libsdl.org)