OpenGL Rotation

后端 未结 6 1400
-上瘾入骨i
-上瘾入骨i 2021-02-14 11:33

I\'m trying to do a simple rotation in OpenGL but must be missing the point. I\'m not looking for a specific fix so much as a quick explanation or link that explains OpenGL rota

6条回答
  •  不思量自难忘°
    2021-02-14 11:49

    Ensure that you're modifying the modelview matrix by putting the following before the glRotatef call:

    glMatrixMode(GL_MODELVIEW);
    

    Otherwise, you may be modifying either the projection or a texture matrix instead.

提交回复
热议问题