rotating spheres
- by Dave
I want to continuously rotate 2 spheres, however the rotation does not seem to work.
Here is my code:
float angle = 0.0f;
void light(){
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHT1);
// Create light components
GLfloat positionlight1[] = { 9.0, 5.0, 1.0, 0.0 };
GLfloat positionlight2[] =…