does glRotate in OpenGL rotate the camera or rotate the world axis or rotate the model object?

前端 未结 2 1842
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 04:26

I want to know whether glRotate rotates the camera, the world axis, or the object. Explain how they are different with examples.

2条回答
  •  余生分开走
    2021-02-10 05:25

    glRotate works on the current matrix. So it depend if the matrix is the camera one or a world trasformation one. To know more about the current matrix have a look at glMatrixMode(). Finding example is just googling: I found this one that in order to me should help you to figure out what's happening.

提交回复
热议问题