opengl: how to keep objects in window when it's resized

前端 未结 3 1879
陌清茗
陌清茗 2021-01-15 10:05

I\'m working a MS paint-like application on OpenGL using Bresenham\'s midpoint algorithm as homework. So far I can draw lines and ellipses. I lose them all when resizing the

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-15 10:17

    Here is a quick example for windows : http://www.falloutsoftware.com/tutorials/gl/gl2.htm

提交回复
热议问题