PDA

View Full Version : OpenGL not on Linux



nukem
01-30-2002, 06:38 PM
i just installed linux on my comp. i am a linux newbie but not a C++ newbie. i coded a lil OpenGL and i found out none of the OpenGL files were on linux. my windows ones wouldnt work because well there for windows(they need windows.h) dose any 1 no how i can get and install OpenGL on linux?

jackz
01-31-2002, 12:10 AM
Originally posted by nukem:
i just installed linux on my comp. i am a linux newbie but not a C++ newbie. i coded a lil OpenGL and i found out none of the OpenGL files were on linux. my windows ones wouldnt work because well there for windows(they need windows.h) dose any 1 no how i can get and install OpenGL on linux?

headers are in -devel packages, you need to install them.
mesa-devel for gl.h if I remember right.

satan
02-12-2002, 04:00 PM
it depends on your graphics card
if you have an nvidia you are lucky and get all information you need from www.nvidia.com (http://www.nvidia.com) (just look at the linux drivers)
if not you have to use mesa
if your card is supported by kernel dri you get hw accel with mesa else you only get software rendering
for developing you need at least gl.h and i think glx.h would be helpfull, too
i think they are supplied by mesa-devel (if you have to use mesa)
nvidia provide their own header (of course with the same names)

hope this helps

666