title: OpenGL object not rotating
body: <p>So, I've been trying to rotate a single object in an OpenGL/GLUT environment. 
  <a href="https://stackoverflow.com/questions/3515059/how-to-rotate-a-specific-object-in-opengl">After </a> going through several <a href="https://stackoverflow.com/questions/2875376/how-do-i-rotate-or-translate-individual-object-instances-in-opengl">questions</a> on SO and the like, I've written what appears to be correct code, but no dice. Does anyone know how to make this work?</p>
  
  <p>PS: I've tried changing the GLMatrixmode to Projection, but that just shows a black screen. Same thing happens if I use glLoadIdentity().
  Here's my rendering code</p>
  
  <pre><code>void display()
  {
      preProcessEvents();
      glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
      glLoadIdentity();
      gluLookAt(Camera::position.x, Camera::position.y, Camera::position.z,
                Camera::position.x+Math::sind(Camera::rotationAngles.x)*Math::cosd(Camera::rotationAngles.y),
                Camera::position.y+Math::cosd(Camera::rotationAngles.x),
                Camera::position.z+Math::sind(Camera::rotationAngles.x)*Math::sind(Camera::rotationAngles.y),
                0.0, 1.0, 0.0);
      glBegin(GL_TRIANGLES);
      glColor3f(1, 0, 0);
      glVertex3f(-1, 0,-3);
      glColor3f(0, 1, 0);
      glVertex3f(0.0f, 2.0f,-3);
      glColor3f(0, 0, 1);
      glVertex3f(1.0f, 0.0f,-3);
      glEnd();
  
      glBindTexture(GL_TEXTURE_2D, tex-&gt;textureID);
  
      glBegin(GL_QUADS);
  
      glColor3f(1, 1, 1);
  
      glTexCoord2f(100, 100);
      glVertex3f(100,0,100);
  
      glTexCoord2f(-100, 100);
      glVertex3f(-100,0,100);
  
      glTexCoord2f(-100,-100);
      glVertex3f(-100,0,-100);
  
      glTexCoord2f(100,-100);
      glVertex3f(100,0,-100);
  
      glEnd();
      glBindTexture(GL_TEXTURE_2D, 0);
  
      object1.draw();
  
      glTranslatef(-10.0, 10.0, 0.0);
      glBindTexture(GL_TEXTURE_2D, tex2-&gt;textureID);
      gluQuadricTexture(quad,1);
      gluSphere(quad,10,20,20);
      glBindTexture(GL_TEXTURE_2D, 0);
  //RELEVANT CODE STARTS HERE
      glMatrixMode(GL_MODELVIEW);
      glLoadIdentity();
      glPushMatrix();
      glRotatef(190, 0.0, 0.0, 1.0);
      glPopMatrix();
  
      glutSwapBuffers();
  }
  </code></pre>