If I have a couples of bricks like this:
glBegin(GL_QUADS);
…
glEnd();
glBegin(GL_QUADS);
…
glEnd();
And I want the first one to rotate, and not the second, how do I do…?
If I have a couples of bricks like this:
glBegin(GL_QUADS);
…
glEnd();
glBegin(GL_QUADS);
…
glEnd();
And I want the first one to rotate, and not the second, how do I do…?
Hi!
Surround the blocks by a call to:
glPushMatrix();
glRotatef(…);
glBegin(…);
…;
glEnd();
glPopMatrix();
Hope this helps!
Diapolo
Thanx, it worked…