OpenGL not on Linux

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?

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.

it depends on your graphics card
if you have an nvidia you are lucky and get all information you need from 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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.