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 = (ycos(90))+(zsin(90));
z1 = (ycos(90))-(xsin(90));
In your z1 line, change the x to a z and then swap the positions of the z and y in that line too. At some point you might want to make that Rad function either an inline function or a macro, at least I would anyway.