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

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -