Another Rotation instead of GlRotate ??

I’m tryng to do a function that does exactly what glRotatef does.
Well, could you people check it, to see what’s wrong?

Shouldn’t this routines rotate the point in the x axis by 90 degrees, just like
glRotatef(90,1.0,0.0,0.0) ??
x1 = x;
y1 = (ycos(90))+(zsin(90));
z1 = (ycos(90))-(xsin(90));

Remember that C treats angles in radians (2*pi) versus degrees (360) for a full circle.

Thanks, but with Radians it’s not working also

Think is should be

x1 = x
y1 = ycos - zsin
z1 = ysin + zcos

And it this doesn’t work, try change the x in your z1-formula to z.