opengl - glRotatef() - How to apply rotation in multiple axis? -
i trying rotate cube 90 degrees on y axis, , 90 degrees on z axis, when apply rotation on z axis, changes angle on x axis.
this code:
glrotatef(90.0, 0.0, 1.0, 0.0); glrotatef(90.0, 0.0, 0.0, 1.0);
what correct way achieve result want - i.e. 90 degrees on y , 90 degrees on z?
is there tutorial explains how use glrotate()
correctly examples?
Comments
Post a Comment