HI

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 = (y*cos(90))+(z*sin(90));

z1 = (y*cos(90))-(x*sin(90));