How does zooming, panning and rotating work?

前端 未结 3 1737
醉酒成梦
醉酒成梦 2021-01-18 14:04

Using OpenGL I\'m attempting to draw a primitive map of my campus.

Can anyone explain to me how panning, zooming and rotating is usually implemented?

For exa

3条回答
  •  悲&欢浪女
    2021-01-18 14:33

    All of these "actions" can be achieved using model-view matrix transformation functions. You should read about glTranslatef (panning), glScalef (zoom), glRotatef (rotation). You also should need to read some basic tutorial about OpenGL, you might find this link useful.

提交回复
热议问题