I’m relatively new to Linux and C programming (in my first year as a CS major), but I’d like to try my hand at OpenGL. Mesa is installed on my Linux box, but I don’t even know where to begin. Can anyone point me to a good on-line tutorial? I seem to only be able to find info on developing for Windows (yuck!). Or how about a good introductory book?
the openGL “red book” is probably the best way to start. it uses GLUT in its examples, which is a cross platform windowing library specifically designed for use with GL. its actuall title is “OpenGL programming guide” third edition is the latest (i think) but its for openGL 1.2, although there is a newer spec (1.3) i dont know when/if a new edition will come out for the 1.3 spec. they are actually very simmilar (just some minor changes, but they are backwards compatible), so it should be sufficient for what you need.
nehe’s tutorials are rather good, and he does offer a GLUT tutorial, and you should be able to just drop in the code from the other tutorials into his GLUT framework. http://nehe.gamedev.net