rotations

Hi,
my problem is following:
I need to rotate object around x, y and z axis. that’s quite simple. but what I can’t accomplish is to rotate always considering the already rotated axes.

Let mi give an example:
-first rotate around x-axis at 5 degrees
-than rotate around the y-axis at 5 degrees (but around this new y-axis, that was rotated when rotating around x-axis).
-and so on…

So when rotating around any of the three axes, one should be static and the two others should rotate.

I hope I didn’t confuse you completely.

Thanks.


glRotated(5,0,y,0);
glRotated(5,x,0,0);

or maybe reverse the order.