How to rotate a specific object in openGL?

前端 未结 2 1743
独厮守ぢ
独厮守ぢ 2020-12-14 11:01

I have some objects on the screen and would like to rotate only one of them. I tried using the glRotatef(...) function but turns out glRotatef(...) rotates all my objects (r

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 11:30

    Tutorial #4 from NeHe shows how to do that precisely.

    Also, you might want to take a look at this:

    OpenGL Rotation

提交回复
热议问题