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

php - Admin SDK -- get information about the group -

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

Python Error - TypeError: input expected at most 1 arguments, got 3 -