PDA

View Full Version : rotating



07-21-2005, 10:20 AM
Where can i find the code of the glRotatef function ?

Overmind
07-21-2005, 10:49 AM
http://mesa3d.sourceforge.net/
http://oss.sgi.com/projects/ogl-sample/index.html

The first one is Mesa, the OpenGL software implementation for Linux. The second one is the reference implementation by Sun.

But if you only want to know how to calculate a rotation matrix, there is an appendix in the Redbook with the matrices that are generated by the transformation functions. It's available here:
http://www.opengl.org/documentation/red_book_1.0/