title: OpenGL: What does glRotatef rotate?
body: <p>When I call the <code>glRotatef</code> like this:  </p>
  
  <pre><code>glRotatef(angle,0.0,1.0,0.0) //rotate about y-axis
  </code></pre>
  
  <p>I know it is to rotate by <code>angle</code> degrees about the <code>y axis</code>.<br>
  But, <em>what</em> is being rotated here? Which object exactly?</p>
  
  <p>Probably a silly question, but I'm entirely new to this.</p>
  
  <p>I was able to rotate a line about it's endpoint using the answer <a href="https://stackoverflow.com/questions/25289143/opengl-rotate-line-about-endpoint">here</a> , but I don't really understand how it works internally.</p>