Advertisement

OpenGL programming on Linux

Started by April 06, 2005 11:56 AM
3 comments, last by fyhuang 19 years, 7 months ago
Im pretty new to Linux, and have some questions about programming in linux using opengl. Hopefully you guys will be able to help me out :) First, I have the latest ATi driver installed, and 3d acceleration works (glxgears reports ~2200 fps). Second, when I type fglrxinfo it reports OpenGL version string 1.3.4893. Now, is that version string correct? I don't even have OpenGL 1.5? Yet UT2004 seems to run just fine using the 64 bit binaries.... These questions arose as I am interested in GLSL.... Do I just access everything through extensions like I do in Windows? Thanks!
what gfx card do you have?
...
Advertisement
Ati Mobility 9700....
Quote: Original post by WilyCoder
Im pretty new to Linux, and have some questions about programming in linux using opengl. Hopefully you guys will be able to help me out :)

First, I have the latest ATi driver installed, and 3d acceleration works (glxgears reports ~2200 fps).

Second, when I type fglrxinfo it reports OpenGL version string 1.3.4893. Now, is that version string correct? I don't even have OpenGL 1.5? Yet UT2004 seems to run just fine using the 64 bit binaries....

These questions arose as I am interested in GLSL.... Do I just access everything through extensions like I do in Windows?

Thanks!


Anything which isn't part of OpenGL 1.3 you will have to do with extensions just like in windows. The only difference is the function (glXGetProcAddress instead of wglGetProcAddress).

As far as I now, 64 bit binaries and the OpenGL version have nothing to do with each other.
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
IIRC all OpenGL features (whether they are part of the current OGL version or not) are handled as extensions (well, all the non-standard ones). The OGL version just tells you, in general, what extensions are available.

The ATi drivers say 1.3 but they really do support shaders and everything (check the glxinfo output). UT2004 works fine here too :).

The libraries you'll need are the MesaGL-devel libraries. Then you link with -lGL -lGLU, and stuff.

Under Linux glx, as opposed to wgl, is used but that shouldn't be too hard to get used to.

Good luck and have fun!
- fyhuang [ site ]

This topic is closed to new replies.

Advertisement