title: Rubik's cube rotation
body: <p>I created a rubik's cube with 26 squares(not 27 since you cant see the middle one). I am trying to rotate the cube. I thought about using Pushstack Popstack, but I couldnt find any good examples I could look at.</p>
  
  <p>I was wondering what is a good way to rotate. I used 26 of the following code to create the cubes</p>
  
  <pre><code>   glBegin(GL_POLYGON);
    //glColor3f(  1.0,  0.0,  1.0 );
    glColor3f(   1.0,  0.0,  0.0 );
    glVertex3f( 1.5, -0.5, -0.5 );
    glVertex3f( 1.5,  0.5, -0.5 );
    glVertex3f( 1.5,  0.5,  0.5 );
    glVertex3f( 1.5, -0.5,  0.5 );
    glEnd();
  </code></pre>