PDA

View Full Version : glRotatef



CyBBe
05-06-2000, 06:06 AM
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...?

Diapolo
05-06-2000, 06:27 AM
Hi!

Surround the blocks by a call to:

glPushMatrix();
glRotatef(...);
glBegin(...);
...;
glEnd();
glPopMatrix();

Hope this helps!

Diapolo

CyBBe
05-06-2000, 10:09 AM
Thanx, it worked...