View Full Version : opengl rotate

10-01-2013, 10:39 AM
hi i want to know how to rotate a sphere in any angle with opengl thanks

10-01-2013, 10:48 AM
Web search "glRotate", and follow the link at the top from opengl org. That's the old way. The new way is to learn linear algebra, and compute your own model view matrix in the CPU, and use it in the vertex shader on the GPU. Or, get the GLM matrix math library for OpenGL, and use it in the vertex shader.

10-02-2013, 03:14 AM
Or, take a look at your double post. Seriously.